home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / manual-p / man_db-2.000 / man_db-2 / man_db-2.3.10 / configure < prev    next >
Encoding:
Text File  |  1995-07-13  |  98.2 KB  |  4,044 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.3 
  5. # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14. ac_help="$ac_help
  15.   --enable-debug      build a Makefile suitable for debugging purposes"
  16. ac_help="$ac_help
  17.   --enable-setuid[=ARG]      install man setuid to user ARG (default - ARG=man)
  18.   --disable-setuid      don't install man setuid"
  19. ac_help="$ac_help
  20.   --with-device=DEVICE      use nroff with the output device DEVICE"
  21. ac_help="$ac_help
  22.   --with-db=LIBRARY      use database library LIBRARY (db, gdbm, ndbm)"
  23.  
  24. # Initialize some variables set by options.
  25. # The variables have the same names as the options, with
  26. # dashes changed to underlines.
  27. build=NONE
  28. cache_file=./config.cache
  29. exec_prefix=NONE
  30. host=NONE
  31. no_create=
  32. nonopt=NONE
  33. no_recursion=
  34. prefix=NONE
  35. program_prefix=NONE
  36. program_suffix=NONE
  37. program_transform_name=s,x,x,
  38. silent=
  39. site=
  40. srcdir=
  41. target=NONE
  42. verbose=
  43. x_includes=NONE
  44. x_libraries=NONE
  45.  
  46. # Initialize some other variables.
  47. subdirs=
  48.  
  49. ac_prev=
  50. for ac_option
  51. do
  52.  
  53.   # If the previous option needs an argument, assign it.
  54.   if test -n "$ac_prev"; then
  55.     eval "$ac_prev=\$ac_option"
  56.     ac_prev=
  57.     continue
  58.   fi
  59.  
  60.   case "$ac_option" in
  61.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  62.   *) ac_optarg= ;;
  63.   esac
  64.  
  65.   # Accept the important Cygnus configure options, so we can diagnose typos.
  66.  
  67.   case "$ac_option" in
  68.  
  69.   -build | --build | --buil | --bui | --bu | --b)
  70.     ac_prev=build ;;
  71.   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
  72.     build="$ac_optarg" ;;
  73.  
  74.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  75.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  76.     ac_prev=cache_file ;;
  77.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  78.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  79.     cache_file="$ac_optarg" ;;
  80.  
  81.   -disable-* | --disable-*)
  82.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  83.     # Reject names that are not valid shell variable names.
  84.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  85.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  86.     fi
  87.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  88.     eval "enable_${ac_feature}=no" ;;
  89.  
  90.   -enable-* | --enable-*)
  91.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  92.     # Reject names that are not valid shell variable names.
  93.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  94.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  95.     fi
  96.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  97.     case "$ac_option" in
  98.       *=*) ;;
  99.       *) ac_optarg=yes ;;
  100.     esac
  101.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  102.  
  103.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  104.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  105.   | --exec | --exe | --ex)
  106.     ac_prev=exec_prefix ;;
  107.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  108.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  109.   | --exec=* | --exe=* | --ex=*)
  110.     exec_prefix="$ac_optarg" ;;
  111.  
  112.   -gas | --gas | --ga | --g)
  113.     # Obsolete; use --with-gas.
  114.     with_gas=yes ;;
  115.  
  116.   -help | --help | --hel | --he)
  117.     # Omit some internal or obsolete options to make the list less imposing.
  118.     # This message is too long to be a string in the A/UX 3.1 sh.
  119.     cat << EOF
  120. Usage: configure [options] [host]
  121. Options: [defaults in brackets after descriptions]
  122. Configuration:
  123.   --cache-file=FILE       cache test results in FILE
  124.   --help                  print this message
  125.   --no-create             do not create output files
  126.   --quiet, --silent       do not print \`checking...' messages
  127.   --version               print the version of autoconf that created configure
  128. Directory and file names:
  129.   --prefix=PREFIX         install architecture-independent files in PREFIX
  130.                           [$ac_default_prefix]
  131.   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
  132.                           [same as prefix]
  133.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  134.   --program-prefix=PREFIX prepend PREFIX to installed program names
  135.   --program-suffix=SUFFIX append SUFFIX to installed program names
  136.   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  137. Host type:
  138.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  139.   --host=HOST             configure for HOST [guessed]
  140.   --target=TARGET         configure for TARGET [TARGET=HOST]
  141. Features and packages:
  142.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  143.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  144.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  145.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  146.   --x-includes=DIR        X include files are in DIR
  147.   --x-libraries=DIR       X library files are in DIR
  148. --enable and --with options recognized:$ac_help
  149. EOF
  150.     exit 0 ;;
  151.  
  152.   -host | --host | --hos | --ho)
  153.     ac_prev=host ;;
  154.   -host=* | --host=* | --hos=* | --ho=*)
  155.     host="$ac_optarg" ;;
  156.  
  157.   -nfp | --nfp | --nf)
  158.     # Obsolete; use --without-fp.
  159.     with_fp=no ;;
  160.  
  161.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  162.   | --no-cr | --no-c)
  163.     no_create=yes ;;
  164.  
  165.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  166.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  167.     no_recursion=yes ;;
  168.  
  169.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  170.     ac_prev=prefix ;;
  171.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  172.     prefix="$ac_optarg" ;;
  173.  
  174.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  175.   | --program-pre | --program-pr | --program-p)
  176.     ac_prev=program_prefix ;;
  177.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  178.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  179.     program_prefix="$ac_optarg" ;;
  180.  
  181.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  182.   | --program-suf | --program-su | --program-s)
  183.     ac_prev=program_suffix ;;
  184.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  185.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  186.     program_suffix="$ac_optarg" ;;
  187.  
  188.   -program-transform-name | --program-transform-name \
  189.   | --program-transform-nam | --program-transform-na \
  190.   | --program-transform-n | --program-transform- \
  191.   | --program-transform | --program-transfor \
  192.   | --program-transfo | --program-transf \
  193.   | --program-trans | --program-tran \
  194.   | --progr-tra | --program-tr | --program-t)
  195.     ac_prev=program_transform_name ;;
  196.   -program-transform-name=* | --program-transform-name=* \
  197.   | --program-transform-nam=* | --program-transform-na=* \
  198.   | --program-transform-n=* | --program-transform-=* \
  199.   | --program-transform=* | --program-transfor=* \
  200.   | --program-transfo=* | --program-transf=* \
  201.   | --program-trans=* | --program-tran=* \
  202.   | --progr-tra=* | --program-tr=* | --program-t=*)
  203.     program_transform_name="$ac_optarg" ;;
  204.  
  205.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  206.   | -silent | --silent | --silen | --sile | --sil)
  207.     silent=yes ;;
  208.  
  209.   -site | --site | --sit)
  210.     ac_prev=site ;;
  211.   -site=* | --site=* | --sit=*)
  212.     site="$ac_optarg" ;;
  213.  
  214.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  215.     ac_prev=srcdir ;;
  216.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  217.     srcdir="$ac_optarg" ;;
  218.  
  219.   -target | --target | --targe | --targ | --tar | --ta | --t)
  220.     ac_prev=target ;;
  221.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  222.     target="$ac_optarg" ;;
  223.  
  224.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  225.     verbose=yes ;;
  226.  
  227.   -version | --version | --versio | --versi | --vers)
  228.     echo "configure generated by autoconf version 2.3"
  229.     exit 0 ;;
  230.  
  231.   -with-* | --with-*)
  232.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  233.     # Reject names that are not valid shell variable names.
  234.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  235.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  236.     fi
  237.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  238.     case "$ac_option" in
  239.       *=*) ;;
  240.       *) ac_optarg=yes ;;
  241.     esac
  242.     eval "with_${ac_package}='$ac_optarg'" ;;
  243.  
  244.   -without-* | --without-*)
  245.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  246.     # Reject names that are not valid shell variable names.
  247.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  248.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  249.     fi
  250.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  251.     eval "with_${ac_package}=no" ;;
  252.  
  253.   --x)
  254.     # Obsolete; use --with-x.
  255.     with_x=yes ;;
  256.  
  257.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  258.   | --x-incl | --x-inc | --x-in | --x-i)
  259.     ac_prev=x_includes ;;
  260.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  261.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  262.     x_includes="$ac_optarg" ;;
  263.  
  264.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  265.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  266.     ac_prev=x_libraries ;;
  267.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  268.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  269.     x_libraries="$ac_optarg" ;;
  270.  
  271.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  272.     ;;
  273.  
  274.   *) 
  275.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  276.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  277.     fi
  278.     if test "x$nonopt" != xNONE; then
  279.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  280.     fi
  281.     nonopt="$ac_option"
  282.     ;;
  283.  
  284.   esac
  285. done
  286.  
  287. if test -n "$ac_prev"; then
  288.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  289. fi
  290.  
  291. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  292.  
  293. # File descriptor usage:
  294. # 0 standard input
  295. # 1 file creation
  296. # 2 errors and warnings
  297. # 3 some systems may open it to /dev/tty
  298. # 4 used on the Kubota Titan
  299. # 6 checking for... messages and results
  300. # 5 compiler messages saved in config.log
  301. if test "$silent" = yes; then
  302.   exec 6>/dev/null
  303. else
  304.   exec 6>&1
  305. fi
  306. exec 5>./config.log
  307.  
  308. echo "\
  309. This file contains any messages produced by compilers while
  310. running configure, to aid debugging if configure makes a mistake.
  311. " 1>&5
  312.  
  313. # Strip out --no-create and --no-recursion so they do not pile up.
  314. # Also quote any args containing shell metacharacters.
  315. ac_configure_args=
  316. for ac_arg
  317. do
  318.   case "$ac_arg" in
  319.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  320.   | --no-cr | --no-c) ;;
  321.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  322.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  323.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  324.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  325.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  326.   esac
  327. done
  328.  
  329. # NLS nuisances.
  330. # Only set LANG and LC_ALL to C if already set.
  331. # These must not be set unconditionally because not all systems understand
  332. # e.g. LANG=C (notably SCO).
  333. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  334. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  335.  
  336. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  337. rm -rf conftest* confdefs.h
  338. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  339. echo > confdefs.h
  340.  
  341. # A filename unique to this package, relative to the directory that
  342. # configure is in, which we can look for to find out if srcdir is correct.
  343. ac_unique_file=acconfig.h
  344.  
  345. # Find the source files, if location was not specified.
  346. if test -z "$srcdir"; then
  347.   ac_srcdir_defaulted=yes
  348.   # Try the directory containing this script, then its parent.
  349.   ac_prog=$0
  350.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  351.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  352.   srcdir=$ac_confdir
  353.   if test ! -r $srcdir/$ac_unique_file; then
  354.     srcdir=..
  355.   fi
  356. else
  357.   ac_srcdir_defaulted=no
  358. fi
  359. if test ! -r $srcdir/$ac_unique_file; then
  360.   if test "$ac_srcdir_defaulted" = yes; then
  361.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  362.   else
  363.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  364.   fi
  365. fi
  366. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  367.  
  368. # Prefer explicitly selected file to automatically selected ones.
  369. if test -z "$CONFIG_SITE"; then
  370.   if test "x$prefix" != xNONE; then
  371.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  372.   else
  373.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  374.   fi
  375. fi
  376. for ac_site_file in $CONFIG_SITE; do
  377.   if test -r "$ac_site_file"; then
  378.     echo "loading site script $ac_site_file"
  379.     . "$ac_site_file"
  380.   fi
  381. done
  382.  
  383. if test -r "$cache_file"; then
  384.   echo "loading cache $cache_file"
  385.   . $cache_file
  386. else
  387.   echo "creating cache $cache_file"
  388.   > $cache_file
  389. fi
  390.  
  391. ac_ext=c
  392. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  393. ac_cpp='$CPP $CPPFLAGS'
  394. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
  395. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  396.  
  397. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  398.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  399.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  400.     ac_n= ac_c='
  401. ' ac_t='    '
  402.   else
  403.     ac_n=-n ac_c= ac_t=
  404.   fi
  405. else
  406.   ac_n= ac_c='\c' ac_t=
  407. fi
  408.  
  409.  
  410. ac_aux_dir=
  411. for ac_dir in tools $srcdir/tools; do
  412.   if test -f $ac_dir/install-sh; then
  413.     ac_aux_dir=$ac_dir
  414.     ac_install_sh="$ac_aux_dir/install-sh -c"
  415.     break
  416.   elif test -f $ac_dir/install.sh; then
  417.     ac_aux_dir=$ac_dir
  418.     ac_install_sh="$ac_aux_dir/install.sh -c"
  419.     break
  420.   fi
  421. done
  422. if test -z "$ac_aux_dir"; then
  423.   { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
  424. fi
  425. ac_config_guess=$ac_aux_dir/config.guess
  426. ac_config_sub=$ac_aux_dir/config.sub
  427. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  428.  
  429.  
  430. if test "$program_transform_name" = s,x,x,; then
  431.   program_transform_name=
  432. else
  433.   # Double any \ or $.
  434.   echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
  435.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  436.   rm -f conftestsed
  437. fi
  438. test "$program_prefix" != NONE &&
  439.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  440. # Use a double $ so make ignores it.
  441. test "$program_suffix" != NONE &&
  442.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  443.  
  444. # sed with no file args requires a program.
  445. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  446.  
  447. date="July 12th, 1995"
  448. version="2.3.10" 
  449. man_ac_version=2003000
  450. # Check whether --enable-debug or --disable-debug was given.
  451. enableval="$enable_debug"
  452. if test -n "$enableval"; then
  453.   : ${LDFLAGS=-g}
  454.       echo "Enabling debugging Makefile" 1>&6
  455.       debug=on
  456. else
  457.   : ${CFLAGS=-O} 
  458.       : ${LDFLAGS=-s}
  459.       cat >> confdefs.h <<\EOF
  460. #define NDEBUG 1
  461. EOF
  462.  
  463.       debug=off
  464. fi
  465.  
  466. # Check whether --enable-setuid or --disable-setuid was given.
  467. enableval="$enable_setuid"
  468. if test -n "$enableval"; then
  469.   if test "$enableval" = "yes" 
  470.        then
  471.         enableval=man
  472.        fi
  473.        if test "$enableval" = "no" 
  474.        then
  475.         man_owner=
  476.         man_install_flags="-m 755"
  477.         echo "Man will not be installed setuid" 1>&6
  478.        else
  479.         man_owner=$enableval
  480.         man_install_flags="-m 4755 -o $man_owner"
  481.         echo "Man will be installed setuid $enableval" 1>&6
  482.            cat >> confdefs.h <<EOF
  483. #define SECURE_MAN_UID "$man_owner"
  484. EOF
  485.  
  486.        fi
  487. else
  488.   man_owner=man
  489.        man_install_flags="-m 4755 -o man"
  490.        cat >> confdefs.h <<EOF
  491. #define SECURE_MAN_UID "$man_owner"
  492. EOF
  493.  
  494. fi
  495.  
  496. # Check whether --with-device or --without-device was given.
  497. withval="$with_device"
  498. if test -n "$withval"; then
  499.   if test "$withval" = "yes" || test "$withval" = "no" 
  500.      then
  501.          { echo "configure: error: --with-device requires an argument" 1>&2; exit 1; }
  502.      else
  503.          nroff_device=" -T$withval"
  504.      fi
  505. fi
  506.  
  507. # Check whether --with-db or --without-db was given.
  508. withval="$with_db"
  509. if test -n "$withval"; then
  510.   if test "$withval" = "yes" || test "$withval" = "no" 
  511.      then
  512.          { echo "configure: error: --with-db requires an argument" 1>&2; exit 1; }
  513.      else
  514.          db=$withval
  515.      fi
  516. else
  517.   : ${db=no}
  518. fi
  519.  
  520. # Extract the first word of "gcc", so it can be a program name with args.
  521. set dummy gcc; ac_word=$2
  522. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  523. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  524.   echo $ac_n "(cached) $ac_c" 1>&6
  525. else
  526.   if test -n "$CC"; then
  527.   ac_cv_prog_CC="$CC" # Let the user override the test.
  528. else
  529.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  530.   for ac_dir in $PATH; do
  531.     test -z "$ac_dir" && ac_dir=.
  532.     if test -f $ac_dir/$ac_word; then
  533.       ac_cv_prog_CC="gcc"
  534.       break
  535.     fi
  536.   done
  537.   IFS="$ac_save_ifs"
  538.   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  539. fi
  540. fi
  541. CC="$ac_cv_prog_CC"
  542. if test -n "$CC"; then
  543.   echo "$ac_t""$CC" 1>&6
  544. else
  545.   echo "$ac_t""no" 1>&6
  546. fi
  547.  
  548.  
  549. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  550. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  551.   echo $ac_n "(cached) $ac_c" 1>&6
  552. else
  553.   cat > conftest.c <<EOF
  554. #ifdef __GNUC__
  555.   yes;
  556. #endif
  557. EOF
  558. if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
  559.   ac_cv_prog_gcc=yes
  560. else
  561.   ac_cv_prog_gcc=no
  562. fi
  563. fi
  564. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  565. if test $ac_cv_prog_gcc = yes; then
  566.   GCC=yes
  567.   if test "${CFLAGS+set}" != set; then
  568.     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  569. if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
  570.   echo $ac_n "(cached) $ac_c" 1>&6
  571. else
  572.   echo 'void f(){}' > conftest.c
  573. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  574.   ac_cv_prog_gcc_g=yes
  575. else
  576.   ac_cv_prog_gcc_g=no
  577. fi
  578. rm -f conftest*
  579.  
  580. fi
  581.     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
  582.     if test $ac_cv_prog_gcc_g = yes; then
  583.       CFLAGS="-g -O"
  584.     else
  585.       CFLAGS="-O"
  586.     fi
  587.   fi
  588. else
  589.   GCC=
  590.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  591. fi
  592.  
  593. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  594. # On Suns, sometimes $CPP names a directory.
  595. if test -n "$CPP" && test -d "$CPP"; then
  596.   CPP=
  597. fi
  598. if test -z "$CPP"; then
  599. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  600.   echo $ac_n "(cached) $ac_c" 1>&6
  601. else
  602.     # This must be in double quotes, not single quotes, because CPP may get
  603.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  604.   CPP="${CC-cc} -E"
  605.   # On the NeXT, cc -E runs the code through the compiler's parser,
  606.   # not just through cpp.
  607.   cat > conftest.$ac_ext <<EOF
  608. #line 609 "configure"
  609. #include "confdefs.h"
  610. #include <assert.h>
  611. Syntax Error
  612. EOF
  613. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  614. ac_err=`grep -v '^ *+' conftest.out`
  615. if test -z "$ac_err"; then
  616.   :
  617. else
  618.   echo "$ac_err" >&5
  619.   rm -rf conftest*
  620.   CPP="${CC-cc} -E -traditional-cpp"
  621.   cat > conftest.$ac_ext <<EOF
  622. #line 623 "configure"
  623. #include "confdefs.h"
  624. #include <assert.h>
  625. Syntax Error
  626. EOF
  627. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  628. ac_err=`grep -v '^ *+' conftest.out`
  629. if test -z "$ac_err"; then
  630.   :
  631. else
  632.   echo "$ac_err" >&5
  633.   rm -rf conftest*
  634.   CPP=/lib/cpp
  635. fi
  636. rm -f conftest*
  637. fi
  638. rm -f conftest*
  639.   ac_cv_prog_CPP="$CPP"
  640. fi
  641. fi
  642. CPP="$ac_cv_prog_CPP"
  643. echo "$ac_t""$CPP" 1>&6
  644.  
  645. # Find a good install program.  We prefer a C program (faster),
  646. # so one script is as good as another.  But avoid the broken or
  647. # incompatible versions:
  648. # SysV /etc/install, /usr/sbin/install
  649. # SunOS /usr/etc/install
  650. # IRIX /sbin/install
  651. # AIX /bin/install
  652. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  653. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  654. # ./install, which can be erroneously created by make from ./install.sh.
  655. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  656. if test -z "$INSTALL"; then
  657. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  658.   echo $ac_n "(cached) $ac_c" 1>&6
  659. else
  660.     IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  661.   for ac_dir in $PATH; do
  662.     # Account for people who put trailing slashes in PATH elements.
  663.     case "$ac_dir/" in
  664.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  665.     *)
  666.       # OSF1 and SCO ODT 3.0 have their own names for install.
  667.       for ac_prog in ginstall installbsd scoinst install; do
  668.         if test -f $ac_dir/$ac_prog; then
  669.       if test $ac_prog = install &&
  670.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  671.         # AIX install.  It has an incompatible calling convention.
  672.         # OSF/1 installbsd also uses dspmsg, but is usable.
  673.         :
  674.       else
  675.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  676.         break 2
  677.       fi
  678.     fi
  679.       done
  680.       ;;
  681.     esac
  682.   done
  683.   IFS="$ac_save_ifs"
  684.   # As a last resort, use the slow shell script.
  685.   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  686. fi
  687.   INSTALL="$ac_cv_path_install"
  688. fi
  689. echo "$ac_t""$INSTALL" 1>&6
  690.  
  691. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  692. # It thinks the first close brace ends the variable substitution.
  693. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  694.  
  695. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  696.  
  697. # Extract the first word of "ranlib", so it can be a program name with args.
  698. set dummy ranlib; ac_word=$2
  699. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  700. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  701.   echo $ac_n "(cached) $ac_c" 1>&6
  702. else
  703.   if test -n "$RANLIB"; then
  704.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  705. else
  706.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  707.   for ac_dir in $PATH; do
  708.     test -z "$ac_dir" && ac_dir=.
  709.     if test -f $ac_dir/$ac_word; then
  710.       ac_cv_prog_RANLIB="ranlib"
  711.       break
  712.     fi
  713.   done
  714.   IFS="$ac_save_ifs"
  715.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  716. fi
  717. fi
  718. RANLIB="$ac_cv_prog_RANLIB"
  719. if test -n "$RANLIB"; then
  720.   echo "$ac_t""$RANLIB" 1>&6
  721. else
  722.   echo "$ac_t""no" 1>&6
  723. fi
  724.  
  725. # Extract the first word of "cat", so it can be a program name with args.
  726. set dummy cat; ac_word=$2
  727. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  728. if eval "test \"`echo '$''{'ac_cv_path_cat'+set}'`\" = set"; then
  729.   echo $ac_n "(cached) $ac_c" 1>&6
  730. else
  731.   case "$cat" in
  732.   /*)
  733.   ac_cv_path_cat="$cat" # Let the user override the test with a path.
  734.   ;;
  735.   *)
  736.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  737.   for ac_dir in $PATH; do
  738.     test -z "$ac_dir" && ac_dir=.
  739.     if test -f $ac_dir/$ac_word; then
  740.       ac_cv_path_cat="$ac_dir/$ac_word"
  741.       break
  742.     fi
  743.   done
  744.   IFS="$ac_save_ifs"
  745.   ;;
  746. esac
  747. fi
  748. cat="$ac_cv_path_cat"
  749. if test -n "$cat"; then
  750.   echo "$ac_t""$cat" 1>&6
  751. else
  752.   echo "$ac_t""no" 1>&6
  753. fi
  754.  
  755. # Extract the first word of "tr", so it can be a program name with args.
  756. set dummy tr; ac_word=$2
  757. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  758. if eval "test \"`echo '$''{'ac_cv_path_tr'+set}'`\" = set"; then
  759.   echo $ac_n "(cached) $ac_c" 1>&6
  760. else
  761.   case "$tr" in
  762.   /*)
  763.   ac_cv_path_tr="$tr" # Let the user override the test with a path.
  764.   ;;
  765.   *)
  766.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  767.   for ac_dir in $PATH; do
  768.     test -z "$ac_dir" && ac_dir=.
  769.     if test -f $ac_dir/$ac_word; then
  770.       ac_cv_path_tr="$ac_dir/$ac_word"
  771.       break
  772.     fi
  773.   done
  774.   IFS="$ac_save_ifs"
  775.   ;;
  776. esac
  777. fi
  778. tr="$ac_cv_path_tr"
  779. if test -n "$tr"; then
  780.   echo "$ac_t""$tr" 1>&6
  781. else
  782.   echo "$ac_t""no" 1>&6
  783. fi
  784.  
  785. for ac_prog in less more
  786. do
  787. # Extract the first word of "$ac_prog", so it can be a program name with args.
  788. set dummy $ac_prog; ac_word=$2
  789. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  790. if eval "test \"`echo '$''{'ac_cv_prog_pager'+set}'`\" = set"; then
  791.   echo $ac_n "(cached) $ac_c" 1>&6
  792. else
  793.   if test -n "$pager"; then
  794.   ac_cv_prog_pager="$pager" # Let the user override the test.
  795. else
  796.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  797.   for ac_dir in $PATH; do
  798.     test -z "$ac_dir" && ac_dir=.
  799.     if test -f $ac_dir/$ac_word; then
  800.       ac_cv_prog_pager="$ac_prog"
  801.       break
  802.     fi
  803.   done
  804.   IFS="$ac_save_ifs"
  805. fi
  806. fi
  807. pager="$ac_cv_prog_pager"
  808. if test -n "$pager"; then
  809.   echo "$ac_t""$pager" 1>&6
  810. else
  811.   echo "$ac_t""no" 1>&6
  812. fi
  813.  
  814. test -n "$pager" && break
  815. done
  816.  
  817. test "$pager" && pager="$pager -s"
  818. macros="andoc an doc"
  819. for ac_prog in nroff gnroff groff
  820. do
  821. # Extract the first word of "$ac_prog", so it can be a program name with args.
  822. set dummy $ac_prog; ac_word=$2
  823. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  824. if eval "test \"`echo '$''{'ac_cv_path_nroff'+set}'`\" = set"; then
  825.   echo $ac_n "(cached) $ac_c" 1>&6
  826. else
  827.   case "$nroff" in
  828.   /*)
  829.   ac_cv_path_nroff="$nroff" # Let the user override the test with a path.
  830.   ;;
  831.   *)
  832.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  833.   for ac_dir in $PATH; do
  834.     test -z "$ac_dir" && ac_dir=.
  835.     if test -f $ac_dir/$ac_word; then
  836.       ac_cv_path_nroff="$ac_dir/$ac_word"
  837.       break
  838.     fi
  839.   done
  840.   IFS="$ac_save_ifs"
  841.   ;;
  842. esac
  843. fi
  844. nroff="$ac_cv_path_nroff"
  845. if test -n "$nroff"; then
  846.   echo "$ac_t""$nroff" 1>&6
  847. else
  848.   echo "$ac_t""no" 1>&6
  849. fi
  850.  
  851. test -n "$nroff" && break
  852. done
  853.  
  854. if test "$nroff"
  855. then
  856.         echo $ac_n "checking whether nroff is GNU nroff""... $ac_c" 1>&6
  857.  
  858. if eval "test \"`echo '$''{'man_cv_prog_gnu_nroff'+set}'`\" = set"; then
  859.   echo $ac_n "(cached) $ac_c" 1>&6
  860. else
  861.   if test `echo "\\n(.g" | $nroff | tr -d '\n'` -eq 1
  862. then
  863.     man_cv_prog_gnu_nroff=yes
  864. else
  865.     man_cv_prog_gnu_nroff=no
  866. fi
  867. fi
  868.  
  869.  
  870. if test "$man_cv_prog_gnu_nroff" = "yes" 
  871. then
  872.     cat >> confdefs.h <<\EOF
  873. #define GNU_NROFF 1
  874. EOF
  875.  
  876. fi
  877. echo "$ac_t""$man_cv_prog_gnu_nroff" 1>&6
  878.  
  879.     if test "$nroff_device" 
  880.     then
  881.         echo $ac_n "checking that nroff works with argument$nroff_device""... $ac_c" 1>&6
  882.         if $nroff $nroff_device /dev/null >/dev/null 2>&1 3>&1
  883.         then 
  884.             echo "$ac_t""yes" 1>&6
  885.         else
  886.             echo "$ac_t""no" 1>&6
  887.             { echo "configure: error: nroff does not work with argument$nroff_device" 1>&2; exit 1; }
  888.         fi
  889.     fi
  890.     echo $ac_n "checking for appropriate nroff macro""... $ac_c" 1>&6
  891.     if eval "test \"`echo '$''{'man_cv_prog_nroff_macro'+set}'`\" = set"; then
  892.   echo $ac_n "(cached) $ac_c" 1>&6
  893. else
  894.   
  895.     
  896.     for macro in $macros
  897.     do
  898.         if $nroff -m$macro $nroff_device /dev/null >/dev/null 2>&1 3>&1
  899.         then
  900.             man_cv_prog_nroff_macro=-m$macro
  901.             break
  902.         fi
  903.     done
  904. fi
  905.  
  906.     
  907.     if test "$man_cv_prog_nroff_macro"
  908.     then
  909.         nroff="$nroff ${man_cv_prog_nroff_macro}${nroff_device}"
  910.         echo "$ac_t""$man_cv_prog_nroff_macro" 1>&6
  911.     else
  912.         echo "$ac_t""ambiguous" 1>&6
  913.         echo "configure: warning: please edit include/manconfig.h and add nroff definition" 1>&2
  914.     fi 
  915. else
  916.     echo "configure: warning: Cannot find an nroff-like program" 1>&2
  917.     nroff="(nroff not installed)"
  918.     cat >> confdefs.h <<\EOF
  919. #define NROFF_MISSING 1
  920. EOF
  921.  
  922. fi
  923. for ac_prog in groff
  924. do
  925. # Extract the first word of "$ac_prog", so it can be a program name with args.
  926. set dummy $ac_prog; ac_word=$2
  927. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  928. if eval "test \"`echo '$''{'ac_cv_path_troff'+set}'`\" = set"; then
  929.   echo $ac_n "(cached) $ac_c" 1>&6
  930. else
  931.   case "$troff" in
  932.   /*)
  933.   ac_cv_path_troff="$troff" # Let the user override the test with a path.
  934.   ;;
  935.   *)
  936.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  937.   for ac_dir in $PATH; do
  938.     test -z "$ac_dir" && ac_dir=.
  939.     if test -f $ac_dir/$ac_word; then
  940.       ac_cv_path_troff="$ac_dir/$ac_word"
  941.       break
  942.     fi
  943.   done
  944.   IFS="$ac_save_ifs"
  945.   ;;
  946. esac
  947. fi
  948. troff="$ac_cv_path_troff"
  949. if test -n "$troff"; then
  950.   echo "$ac_t""$troff" 1>&6
  951. else
  952.   echo "$ac_t""no" 1>&6
  953. fi
  954.  
  955. test -n "$troff" && break
  956. done
  957.  
  958. if test "$troff"
  959. then
  960.     cat >> confdefs.h <<\EOF
  961. #define TROFF_IS_GROFF 1
  962. EOF
  963.  
  964.     TROFF=groff
  965. else
  966.     for ac_prog in troff gtroff
  967. do
  968. # Extract the first word of "$ac_prog", so it can be a program name with args.
  969. set dummy $ac_prog; ac_word=$2
  970. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  971. if eval "test \"`echo '$''{'ac_cv_path_troff'+set}'`\" = set"; then
  972.   echo $ac_n "(cached) $ac_c" 1>&6
  973. else
  974.   case "$troff" in
  975.   /*)
  976.   ac_cv_path_troff="$troff" # Let the user override the test with a path.
  977.   ;;
  978.   *)
  979.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  980.   for ac_dir in $PATH; do
  981.     test -z "$ac_dir" && ac_dir=.
  982.     if test -f $ac_dir/$ac_word; then
  983.       ac_cv_path_troff="$ac_dir/$ac_word"
  984.       break
  985.     fi
  986.   done
  987.   IFS="$ac_save_ifs"
  988.   ;;
  989. esac
  990. fi
  991. troff="$ac_cv_path_troff"
  992. if test -n "$troff"; then
  993.   echo "$ac_t""$troff" 1>&6
  994. else
  995.   echo "$ac_t""no" 1>&6
  996. fi
  997.  
  998. test -n "$troff" && break
  999. done
  1000.  
  1001.     TROFF=troff
  1002. fi
  1003. if test "$troff"
  1004. then
  1005.     cat >> confdefs.h <<\EOF
  1006. #define HAS_TROFF 1
  1007. EOF
  1008.  
  1009.     echo $ac_n "checking for appropriate $TROFF options""... $ac_c" 1>&6
  1010.     if eval "test \"`echo '$''{'man_cv_prog_troff_options'+set}'`\" = set"; then
  1011.   echo $ac_n "(cached) $ac_c" 1>&6
  1012. else
  1013.   
  1014.     test "$TROFF" = "troff" && $troff -t /dev/null >/dev/null 2>&1 3>&1 \
  1015.                 && troff_filter="-t "
  1016.     for macro in $macros
  1017.     do
  1018.         if $troff $troff_filter -m$macro /dev/null >/dev/null 2>&1 3>&1
  1019.         then
  1020.             man_cv_prog_troff_options="${troff_filter}-m${macro}"
  1021.             break
  1022.         fi
  1023.     done
  1024. fi
  1025.  
  1026.     if test "$man_cv_prog_troff_options"
  1027.     then
  1028.         troff="$troff $man_cv_prog_troff_options"
  1029.         echo "$ac_t""$man_cv_prog_troff_options" 1>&6
  1030.     else
  1031.         echo "$ac_t""ambiguous" 1>&6
  1032.         echo "configure: warning: please edit include/manconfig.h and add troff definition" 1>&2
  1033.     fi
  1034. else
  1035.     troff="(troff not installed)"
  1036. fi
  1037. for ac_prog in eqn geqn
  1038. do
  1039. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1040. set dummy $ac_prog; ac_word=$2
  1041. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1042. if eval "test \"`echo '$''{'ac_cv_path_eqn'+set}'`\" = set"; then
  1043.   echo $ac_n "(cached) $ac_c" 1>&6
  1044. else
  1045.   case "$eqn" in
  1046.   /*)
  1047.   ac_cv_path_eqn="$eqn" # Let the user override the test with a path.
  1048.   ;;
  1049.   *)
  1050.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1051.   for ac_dir in $PATH; do
  1052.     test -z "$ac_dir" && ac_dir=.
  1053.     if test -f $ac_dir/$ac_word; then
  1054.       ac_cv_path_eqn="$ac_dir/$ac_word"
  1055.       break
  1056.     fi
  1057.   done
  1058.   IFS="$ac_save_ifs"
  1059.   ;;
  1060. esac
  1061. fi
  1062. eqn="$ac_cv_path_eqn"
  1063. if test -n "$eqn"; then
  1064.   echo "$ac_t""$eqn" 1>&6
  1065. else
  1066.   echo "$ac_t""no" 1>&6
  1067. fi
  1068.  
  1069. test -n "$eqn" && break
  1070. done
  1071.  
  1072. for ac_prog in neqn gneqn
  1073. do
  1074. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1075. set dummy $ac_prog; ac_word=$2
  1076. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1077. if eval "test \"`echo '$''{'ac_cv_path_neqn'+set}'`\" = set"; then
  1078.   echo $ac_n "(cached) $ac_c" 1>&6
  1079. else
  1080.   case "$neqn" in
  1081.   /*)
  1082.   ac_cv_path_neqn="$neqn" # Let the user override the test with a path.
  1083.   ;;
  1084.   *)
  1085.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1086.   for ac_dir in $PATH; do
  1087.     test -z "$ac_dir" && ac_dir=.
  1088.     if test -f $ac_dir/$ac_word; then
  1089.       ac_cv_path_neqn="$ac_dir/$ac_word"
  1090.       break
  1091.     fi
  1092.   done
  1093.   IFS="$ac_save_ifs"
  1094.   ;;
  1095. esac
  1096. fi
  1097. neqn="$ac_cv_path_neqn"
  1098. if test -n "$neqn"; then
  1099.   echo "$ac_t""$neqn" 1>&6
  1100. else
  1101.   echo "$ac_t""no" 1>&6
  1102. fi
  1103.  
  1104. test -n "$neqn" && break
  1105. done
  1106.  
  1107. if test -z "$neqn"
  1108. then
  1109.     test "$eqn" && 
  1110.     (test "$nroff_device" && neqn="$eqn -T$nroff_device" || neqn="$eqn -Tascii")
  1111. fi
  1112. for ac_prog in tbl gtbl
  1113. do
  1114. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1115. set dummy $ac_prog; ac_word=$2
  1116. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1117. if eval "test \"`echo '$''{'ac_cv_path_tbl'+set}'`\" = set"; then
  1118.   echo $ac_n "(cached) $ac_c" 1>&6
  1119. else
  1120.   case "$tbl" in
  1121.   /*)
  1122.   ac_cv_path_tbl="$tbl" # Let the user override the test with a path.
  1123.   ;;
  1124.   *)
  1125.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1126.   for ac_dir in $PATH; do
  1127.     test -z "$ac_dir" && ac_dir=.
  1128.     if test -f $ac_dir/$ac_word; then
  1129.       ac_cv_path_tbl="$ac_dir/$ac_word"
  1130.       break
  1131.     fi
  1132.   done
  1133.   IFS="$ac_save_ifs"
  1134.   ;;
  1135. esac
  1136. fi
  1137. tbl="$ac_cv_path_tbl"
  1138. if test -n "$tbl"; then
  1139.   echo "$ac_t""$tbl" 1>&6
  1140. else
  1141.   echo "$ac_t""no" 1>&6
  1142. fi
  1143.  
  1144. test -n "$tbl" && break
  1145. done
  1146.  
  1147. for ac_prog in col gcol
  1148. do
  1149. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1150. set dummy $ac_prog; ac_word=$2
  1151. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1152. if eval "test \"`echo '$''{'ac_cv_path_col'+set}'`\" = set"; then
  1153.   echo $ac_n "(cached) $ac_c" 1>&6
  1154. else
  1155.   case "$col" in
  1156.   /*)
  1157.   ac_cv_path_col="$col" # Let the user override the test with a path.
  1158.   ;;
  1159.   *)
  1160.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1161.   for ac_dir in $PATH; do
  1162.     test -z "$ac_dir" && ac_dir=.
  1163.     if test -f $ac_dir/$ac_word; then
  1164.       ac_cv_path_col="$ac_dir/$ac_word"
  1165.       break
  1166.     fi
  1167.   done
  1168.   IFS="$ac_save_ifs"
  1169.   ;;
  1170. esac
  1171. fi
  1172. col="$ac_cv_path_col"
  1173. if test -n "$col"; then
  1174.   echo "$ac_t""$col" 1>&6
  1175. else
  1176.   echo "$ac_t""no" 1>&6
  1177. fi
  1178.  
  1179. test -n "$col" && break
  1180. done
  1181.  
  1182. for ac_prog in vgrind gvgrind
  1183. do
  1184. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1185. set dummy $ac_prog; ac_word=$2
  1186. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1187. if eval "test \"`echo '$''{'ac_cv_path_vgrind'+set}'`\" = set"; then
  1188.   echo $ac_n "(cached) $ac_c" 1>&6
  1189. else
  1190.   case "$vgrind" in
  1191.   /*)
  1192.   ac_cv_path_vgrind="$vgrind" # Let the user override the test with a path.
  1193.   ;;
  1194.   *)
  1195.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1196.   for ac_dir in $PATH; do
  1197.     test -z "$ac_dir" && ac_dir=.
  1198.     if test -f $ac_dir/$ac_word; then
  1199.       ac_cv_path_vgrind="$ac_dir/$ac_word"
  1200.       break
  1201.     fi
  1202.   done
  1203.   IFS="$ac_save_ifs"
  1204.   ;;
  1205. esac
  1206. fi
  1207. vgrind="$ac_cv_path_vgrind"
  1208. if test -n "$vgrind"; then
  1209.   echo "$ac_t""$vgrind" 1>&6
  1210. else
  1211.   echo "$ac_t""no" 1>&6
  1212. fi
  1213.  
  1214. test -n "$vgrind" && break
  1215. done
  1216.  
  1217. for ac_prog in refer grefer
  1218. do
  1219. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1220. set dummy $ac_prog; ac_word=$2
  1221. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1222. if eval "test \"`echo '$''{'ac_cv_path_refer'+set}'`\" = set"; then
  1223.   echo $ac_n "(cached) $ac_c" 1>&6
  1224. else
  1225.   case "$refer" in
  1226.   /*)
  1227.   ac_cv_path_refer="$refer" # Let the user override the test with a path.
  1228.   ;;
  1229.   *)
  1230.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1231.   for ac_dir in $PATH; do
  1232.     test -z "$ac_dir" && ac_dir=.
  1233.     if test -f $ac_dir/$ac_word; then
  1234.       ac_cv_path_refer="$ac_dir/$ac_word"
  1235.       break
  1236.     fi
  1237.   done
  1238.   IFS="$ac_save_ifs"
  1239.   ;;
  1240. esac
  1241. fi
  1242. refer="$ac_cv_path_refer"
  1243. if test -n "$refer"; then
  1244.   echo "$ac_t""$refer" 1>&6
  1245. else
  1246.   echo "$ac_t""no" 1>&6
  1247. fi
  1248.  
  1249. test -n "$refer" && break
  1250. done
  1251.  
  1252. for ac_prog in grap
  1253. do
  1254. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1255. set dummy $ac_prog; ac_word=$2
  1256. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1257. if eval "test \"`echo '$''{'ac_cv_path_grap'+set}'`\" = set"; then
  1258.   echo $ac_n "(cached) $ac_c" 1>&6
  1259. else
  1260.   case "$grap" in
  1261.   /*)
  1262.   ac_cv_path_grap="$grap" # Let the user override the test with a path.
  1263.   ;;
  1264.   *)
  1265.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1266.   for ac_dir in $PATH; do
  1267.     test -z "$ac_dir" && ac_dir=.
  1268.     if test -f $ac_dir/$ac_word; then
  1269.       ac_cv_path_grap="$ac_dir/$ac_word"
  1270.       break
  1271.     fi
  1272.   done
  1273.   IFS="$ac_save_ifs"
  1274.   ;;
  1275. esac
  1276. fi
  1277. grap="$ac_cv_path_grap"
  1278. if test -n "$grap"; then
  1279.   echo "$ac_t""$grap" 1>&6
  1280. else
  1281.   echo "$ac_t""no" 1>&6
  1282. fi
  1283.  
  1284. test -n "$grap" && break
  1285. done
  1286.  
  1287. for ac_prog in pic gpic
  1288. do
  1289. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1290. set dummy $ac_prog; ac_word=$2
  1291. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1292. if eval "test \"`echo '$''{'ac_cv_path_pic'+set}'`\" = set"; then
  1293.   echo $ac_n "(cached) $ac_c" 1>&6
  1294. else
  1295.   case "$pic" in
  1296.   /*)
  1297.   ac_cv_path_pic="$pic" # Let the user override the test with a path.
  1298.   ;;
  1299.   *)
  1300.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1301.   for ac_dir in $PATH; do
  1302.     test -z "$ac_dir" && ac_dir=.
  1303.     if test -f $ac_dir/$ac_word; then
  1304.       ac_cv_path_pic="$ac_dir/$ac_word"
  1305.       break
  1306.     fi
  1307.   done
  1308.   IFS="$ac_save_ifs"
  1309.   ;;
  1310. esac
  1311. fi
  1312. pic="$ac_cv_path_pic"
  1313. if test -n "$pic"; then
  1314.   echo "$ac_t""$pic" 1>&6
  1315. else
  1316.   echo "$ac_t""no" 1>&6
  1317. fi
  1318.  
  1319. test -n "$pic" && break
  1320. done
  1321.  
  1322. # Extract the first word of "gzip", so it can be a program name with args.
  1323. set dummy gzip; ac_word=$2
  1324. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1325. if eval "test \"`echo '$''{'ac_cv_path_gzip'+set}'`\" = set"; then
  1326.   echo $ac_n "(cached) $ac_c" 1>&6
  1327. else
  1328.   case "$gzip" in
  1329.   /*)
  1330.   ac_cv_path_gzip="$gzip" # Let the user override the test with a path.
  1331.   ;;
  1332.   *)
  1333.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1334.   for ac_dir in $PATH; do
  1335.     test -z "$ac_dir" && ac_dir=.
  1336.     if test -f $ac_dir/$ac_word; then
  1337.       ac_cv_path_gzip="$ac_dir/$ac_word"
  1338.       break
  1339.     fi
  1340.   done
  1341.   IFS="$ac_save_ifs"
  1342.   ;;
  1343. esac
  1344. fi
  1345. gzip="$ac_cv_path_gzip"
  1346. if test -n "$gzip"; then
  1347.   echo "$ac_t""$gzip" 1>&6
  1348. else
  1349.   echo "$ac_t""no" 1>&6
  1350. fi
  1351.  
  1352. if test "$gzip"
  1353. then
  1354.     gunzip="$gzip -dc"
  1355.     compressor="$gzip -c7"
  1356.     compress_ext="gz"
  1357.     decompressor="$gunzip"
  1358. fi
  1359. # Extract the first word of "compress", so it can be a program name with args.
  1360. set dummy compress; ac_word=$2
  1361. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1362. if eval "test \"`echo '$''{'ac_cv_path_compress'+set}'`\" = set"; then
  1363.   echo $ac_n "(cached) $ac_c" 1>&6
  1364. else
  1365.   case "$compress" in
  1366.   /*)
  1367.   ac_cv_path_compress="$compress" # Let the user override the test with a path.
  1368.   ;;
  1369.   *)
  1370.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1371.   for ac_dir in $PATH; do
  1372.     test -z "$ac_dir" && ac_dir=.
  1373.     if test -f $ac_dir/$ac_word; then
  1374.       ac_cv_path_compress="$ac_dir/$ac_word"
  1375.       break
  1376.     fi
  1377.   done
  1378.   IFS="$ac_save_ifs"
  1379.   ;;
  1380. esac
  1381. fi
  1382. compress="$ac_cv_path_compress"
  1383. if test -n "$compress"; then
  1384.   echo "$ac_t""$compress" 1>&6
  1385. else
  1386.   echo "$ac_t""no" 1>&6
  1387. fi
  1388.  
  1389. if test "$compress"
  1390. then
  1391.     uncompress="$compress -dc"
  1392.     if test -z "$gzip"
  1393.     then
  1394.         compressor="$compress -c"
  1395.         compress_ext="Z"
  1396.         decompressor="$uncompress"
  1397.     fi
  1398. fi
  1399. if test "$gzip" || test "$compress"
  1400. then
  1401.     cat >> confdefs.h <<\EOF
  1402. #define COMP_CAT 1
  1403. EOF
  1404.  
  1405.     cat >> confdefs.h <<\EOF
  1406. #define COMP_SRC 1
  1407. EOF
  1408.  
  1409. fi
  1410. echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1411. cat > conftest.$ac_ext <<EOF
  1412. #line 1413 "configure"
  1413. #include "confdefs.h"
  1414. #ifdef _AIX
  1415.   yes
  1416. #endif
  1417.  
  1418. EOF
  1419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1420.   egrep "yes" >/dev/null 2>&1; then
  1421.   rm -rf conftest*
  1422.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1423. #define _ALL_SOURCE 1
  1424. EOF
  1425.  
  1426. else
  1427.   rm -rf conftest*
  1428.   echo "$ac_t""no" 1>&6
  1429. fi
  1430. rm -f conftest*
  1431.  
  1432.  
  1433. ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  1434. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1435. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1436.   echo $ac_n "(cached) $ac_c" 1>&6
  1437. else
  1438.   cat > conftest.$ac_ext <<EOF
  1439. #line 1440 "configure"
  1440. #include "confdefs.h"
  1441. #include <minix/config.h>
  1442. EOF
  1443. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1444. ac_err=`grep -v '^ *+' conftest.out`
  1445. if test -z "$ac_err"; then
  1446.   rm -rf conftest*
  1447.   eval "ac_cv_header_$ac_safe=yes"
  1448. else
  1449.   echo "$ac_err" >&5
  1450.   rm -rf conftest*
  1451.   eval "ac_cv_header_$ac_safe=no"
  1452. fi
  1453. rm -f conftest*
  1454. fi
  1455. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1456.   echo "$ac_t""yes" 1>&6
  1457.   MINIX=yes
  1458. else
  1459.   echo "$ac_t""no" 1>&6
  1460. MINIX=
  1461. fi
  1462.  
  1463. if test "$MINIX" = yes; then
  1464.   cat >> confdefs.h <<\EOF
  1465. #define _POSIX_SOURCE 1
  1466. EOF
  1467.  
  1468.   cat >> confdefs.h <<\EOF
  1469. #define _POSIX_1_SOURCE 2
  1470. EOF
  1471.  
  1472.   cat >> confdefs.h <<\EOF
  1473. #define _MINIX 1
  1474. EOF
  1475.  
  1476. fi
  1477.  
  1478. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1479. if test -d /etc/conf/kconfig.d &&
  1480.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1481. then
  1482.   echo "$ac_t""yes" 1>&6
  1483.   ISC=yes # If later tests want to check for ISC.
  1484.   cat >> confdefs.h <<\EOF
  1485. #define _POSIX_SOURCE 1
  1486. EOF
  1487.  
  1488.   if test "$GCC" = yes; then
  1489.     CC="$CC -posix"
  1490.   else
  1491.     CC="$CC -Xp"
  1492.   fi
  1493. else
  1494.   echo "$ac_t""no" 1>&6
  1495.   ISC=
  1496. fi
  1497.  
  1498. # Extract the first word of "flex", so it can be a program name with args.
  1499. set dummy flex; ac_word=$2
  1500. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1501. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  1502.   echo $ac_n "(cached) $ac_c" 1>&6
  1503. else
  1504.   if test -n "$LEX"; then
  1505.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  1506. else
  1507.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  1508.   for ac_dir in $PATH; do
  1509.     test -z "$ac_dir" && ac_dir=.
  1510.     if test -f $ac_dir/$ac_word; then
  1511.       ac_cv_prog_LEX="flex"
  1512.       break
  1513.     fi
  1514.   done
  1515.   IFS="$ac_save_ifs"
  1516.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  1517. fi
  1518. fi
  1519. LEX="$ac_cv_prog_LEX"
  1520. if test -n "$LEX"; then
  1521.   echo "$ac_t""$LEX" 1>&6
  1522. else
  1523.   echo "$ac_t""no" 1>&6
  1524. fi
  1525.  
  1526. if test -z "$LEXLIB"
  1527. then
  1528.   case "$LEX" in
  1529.   flex*) ac_lib=fl ;;
  1530.   *) ac_lib=l ;;
  1531.   esac
  1532.   echo $ac_n "checking for -l$ac_lib""... $ac_c" 1>&6
  1533. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib'+set}'`\" = set"; then
  1534.   echo $ac_n "(cached) $ac_c" 1>&6
  1535. else
  1536.   ac_save_LIBS="$LIBS"
  1537. LIBS="-l$ac_lib  $LIBS"
  1538. cat > conftest.$ac_ext <<EOF
  1539. #line 1540 "configure"
  1540. #include "confdefs.h"
  1541.  
  1542. int main() { return 0; }
  1543. int t() {
  1544. yywrap()
  1545. ; return 0; }
  1546. EOF
  1547. if eval $ac_link; then
  1548.   rm -rf conftest*
  1549.   eval "ac_cv_lib_$ac_lib=yes"
  1550. else
  1551.   rm -rf conftest*
  1552.   eval "ac_cv_lib_$ac_lib=no"
  1553. fi
  1554. rm -f conftest*
  1555. LIBS="$ac_save_LIBS"
  1556.  
  1557. fi
  1558. if eval "test \"`echo '$ac_cv_lib_'$ac_lib`\" = yes"; then
  1559.   echo "$ac_t""yes" 1>&6
  1560.   LEXLIB="-l$ac_lib"
  1561. else
  1562.   echo "$ac_t""no" 1>&6
  1563. fi
  1564.  
  1565. fi
  1566.  
  1567. # If we cannot run a trivial program, we must be cross compiling.
  1568. echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
  1569. if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
  1570.   echo $ac_n "(cached) $ac_c" 1>&6
  1571. else
  1572.   if test "$cross_compiling" = yes; then
  1573.   ac_cv_c_cross=yes
  1574. else
  1575. cat > conftest.$ac_ext <<EOF
  1576. #line 1577 "configure"
  1577. #include "confdefs.h"
  1578. main(){return(0);}
  1579. EOF
  1580. eval $ac_link
  1581. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1582.   ac_cv_c_cross=no
  1583. else
  1584.   ac_cv_c_cross=yes
  1585. fi
  1586. fi
  1587. rm -fr conftest*
  1588. fi
  1589. cross_compiling=$ac_cv_c_cross
  1590. echo "$ac_t""$ac_cv_c_cross" 1>&6
  1591.  
  1592. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1593. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1594.   echo $ac_n "(cached) $ac_c" 1>&6
  1595. else
  1596.   cat > conftest.$ac_ext <<EOF
  1597. #line 1598 "configure"
  1598. #include "confdefs.h"
  1599. #include <stdlib.h>
  1600. #include <stdarg.h>
  1601. #include <string.h>
  1602. #include <float.h>
  1603. EOF
  1604. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1605. ac_err=`grep -v '^ *+' conftest.out`
  1606. if test -z "$ac_err"; then
  1607.   rm -rf conftest*
  1608.   ac_cv_header_stdc=yes
  1609. else
  1610.   echo "$ac_err" >&5
  1611.   rm -rf conftest*
  1612.   ac_cv_header_stdc=no
  1613. fi
  1614. rm -f conftest*
  1615.  
  1616. if test $ac_cv_header_stdc = yes; then
  1617.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1618. cat > conftest.$ac_ext <<EOF
  1619. #line 1620 "configure"
  1620. #include "confdefs.h"
  1621. #include <string.h>
  1622. EOF
  1623. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1624.   egrep "memchr" >/dev/null 2>&1; then
  1625.   :
  1626. else
  1627.   rm -rf conftest*
  1628.   ac_cv_header_stdc=no
  1629. fi
  1630. rm -f conftest*
  1631.  
  1632. fi
  1633.  
  1634. if test $ac_cv_header_stdc = yes; then
  1635.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1636. cat > conftest.$ac_ext <<EOF
  1637. #line 1638 "configure"
  1638. #include "confdefs.h"
  1639. #include <stdlib.h>
  1640. EOF
  1641. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1642.   egrep "free" >/dev/null 2>&1; then
  1643.   :
  1644. else
  1645.   rm -rf conftest*
  1646.   ac_cv_header_stdc=no
  1647. fi
  1648. rm -f conftest*
  1649.  
  1650. fi
  1651.  
  1652. if test $ac_cv_header_stdc = yes; then
  1653.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1654. if test "$cross_compiling" = yes; then
  1655.   ac_cv_header_stdc=no
  1656. else
  1657. cat > conftest.$ac_ext <<EOF
  1658. #line 1659 "configure"
  1659. #include "confdefs.h"
  1660. #include <ctype.h>
  1661. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1662. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1663. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1664. int main () { int i; for (i = 0; i < 256; i++)
  1665. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1666. exit (0); }
  1667.  
  1668. EOF
  1669. eval $ac_link
  1670. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  1671.   :
  1672. else
  1673.   ac_cv_header_stdc=no
  1674. fi
  1675. fi
  1676. rm -fr conftest*
  1677. fi
  1678. fi
  1679. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1680. if test $ac_cv_header_stdc = yes; then
  1681.   cat >> confdefs.h <<\EOF
  1682. #define STDC_HEADERS 1
  1683. EOF
  1684.  
  1685. fi
  1686.  
  1687. echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
  1688. if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  1689.   echo $ac_n "(cached) $ac_c" 1>&6
  1690. else
  1691.   cat > conftest.$ac_ext <<EOF
  1692. #line 1693 "configure"
  1693. #include "confdefs.h"
  1694. #include <sys/types.h>
  1695. #include <sys/wait.h>
  1696. #ifndef WEXITSTATUS
  1697. #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  1698. #endif
  1699. #ifndef WIFEXITED
  1700. #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  1701. #endif
  1702. int main() { return 0; }
  1703. int t() {
  1704. int s;
  1705. wait (&s);
  1706. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  1707. ; return 0; }
  1708. EOF
  1709. if eval $ac_compile; then
  1710.   rm -rf conftest*
  1711.   ac_cv_header_sys_wait_h=yes
  1712. else
  1713.   rm -rf conftest*
  1714.   ac_cv_header_sys_wait_h=no
  1715. fi
  1716. rm -f conftest*
  1717.  
  1718. fi
  1719. echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
  1720. if test $ac_cv_header_sys_wait_h = yes; then
  1721.   cat >> confdefs.h <<\EOF
  1722. #define HAVE_SYS_WAIT_H 1
  1723. EOF
  1724.  
  1725. fi
  1726.  
  1727. ac_header_dirent=no
  1728. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1729. do
  1730. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1731. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1732. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1733.   echo $ac_n "(cached) $ac_c" 1>&6
  1734. else
  1735.   cat > conftest.$ac_ext <<EOF
  1736. #line 1737 "configure"
  1737. #include "confdefs.h"
  1738. #include <sys/types.h>
  1739. #include <$ac_hdr>
  1740. int main() { return 0; }
  1741. int t() {
  1742. DIR *dirp = 0;
  1743. ; return 0; }
  1744. EOF
  1745. if eval $ac_compile; then
  1746.   rm -rf conftest*
  1747.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1748. else
  1749.   rm -rf conftest*
  1750.   eval "ac_cv_header_dirent_$ac_safe=no"
  1751. fi
  1752. rm -f conftest*
  1753.  
  1754. fi
  1755. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1756.   echo "$ac_t""yes" 1>&6
  1757.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1758.   cat >> confdefs.h <<EOF
  1759. #define $ac_tr_hdr 1
  1760. EOF
  1761.  ac_header_dirent=$ac_hdr; break
  1762. else
  1763.   echo "$ac_t""no" 1>&6
  1764. fi
  1765. done
  1766. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1767. if test $ac_header_dirent = dirent.h; then
  1768. echo $ac_n "checking for -ldir""... $ac_c" 1>&6
  1769. if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
  1770.   echo $ac_n "(cached) $ac_c" 1>&6
  1771. else
  1772.   ac_save_LIBS="$LIBS"
  1773. LIBS="-ldir  $LIBS"
  1774. cat > conftest.$ac_ext <<EOF
  1775. #line 1776 "configure"
  1776. #include "confdefs.h"
  1777.  
  1778. int main() { return 0; }
  1779. int t() {
  1780. opendir()
  1781. ; return 0; }
  1782. EOF
  1783. if eval $ac_link; then
  1784.   rm -rf conftest*
  1785.   eval "ac_cv_lib_dir=yes"
  1786. else
  1787.   rm -rf conftest*
  1788.   eval "ac_cv_lib_dir=no"
  1789. fi
  1790. rm -f conftest*
  1791. LIBS="$ac_save_LIBS"
  1792.  
  1793. fi
  1794. if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
  1795.   echo "$ac_t""yes" 1>&6
  1796.   LIBS="$LIBS -ldir"
  1797. else
  1798.   echo "$ac_t""no" 1>&6
  1799. fi
  1800.  
  1801. else
  1802. echo $ac_n "checking for -lx""... $ac_c" 1>&6
  1803. if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
  1804.   echo $ac_n "(cached) $ac_c" 1>&6
  1805. else
  1806.   ac_save_LIBS="$LIBS"
  1807. LIBS="-lx  $LIBS"
  1808. cat > conftest.$ac_ext <<EOF
  1809. #line 1810 "configure"
  1810. #include "confdefs.h"
  1811.  
  1812. int main() { return 0; }
  1813. int t() {
  1814. opendir()
  1815. ; return 0; }
  1816. EOF
  1817. if eval $ac_link; then
  1818.   rm -rf conftest*
  1819.   eval "ac_cv_lib_x=yes"
  1820. else
  1821.   rm -rf conftest*
  1822.   eval "ac_cv_lib_x=no"
  1823. fi
  1824. rm -f conftest*
  1825. LIBS="$ac_save_LIBS"
  1826.  
  1827. fi
  1828. if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
  1829.   echo "$ac_t""yes" 1>&6
  1830.   LIBS="$LIBS -lx"
  1831. else
  1832.   echo "$ac_t""no" 1>&6
  1833. fi
  1834.  
  1835. fi
  1836.  
  1837. for ac_hdr in unistd.h memory.h fcntl.h limits.h sys/file.h regex.h
  1838. do
  1839. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1840. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1841. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1842.   echo $ac_n "(cached) $ac_c" 1>&6
  1843. else
  1844.   cat > conftest.$ac_ext <<EOF
  1845. #line 1846 "configure"
  1846. #include "confdefs.h"
  1847. #include <$ac_hdr>
  1848. EOF
  1849. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1850. ac_err=`grep -v '^ *+' conftest.out`
  1851. if test -z "$ac_err"; then
  1852.   rm -rf conftest*
  1853.   eval "ac_cv_header_$ac_safe=yes"
  1854. else
  1855.   echo "$ac_err" >&5
  1856.   rm -rf conftest*
  1857.   eval "ac_cv_header_$ac_safe=no"
  1858. fi
  1859. rm -f conftest*
  1860. fi
  1861. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1862.   echo "$ac_t""yes" 1>&6
  1863.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1864.   cat >> confdefs.h <<EOF
  1865. #define $ac_tr_hdr 1
  1866. EOF
  1867.  
  1868. else
  1869.   echo "$ac_t""no" 1>&6
  1870. fi
  1871. done
  1872.  
  1873. for ac_hdr in string.h strings.h
  1874. do
  1875. ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  1876. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1877. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1878.   echo $ac_n "(cached) $ac_c" 1>&6
  1879. else
  1880.   cat > conftest.$ac_ext <<EOF
  1881. #line 1882 "configure"
  1882. #include "confdefs.h"
  1883. #include <$ac_hdr>
  1884. EOF
  1885. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1886. ac_err=`grep -v '^ *+' conftest.out`
  1887. if test -z "$ac_err"; then
  1888.   rm -rf conftest*
  1889.   eval "ac_cv_header_$ac_safe=yes"
  1890. else
  1891.   echo "$ac_err" >&5
  1892.   rm -rf conftest*
  1893.   eval "ac_cv_header_$ac_safe=no"
  1894. fi
  1895. rm -f conftest*
  1896. fi
  1897. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1898.   echo "$ac_t""yes" 1>&6
  1899.     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
  1900.   cat >> confdefs.h <<EOF
  1901. #define $ac_tr_hdr 1
  1902. EOF
  1903.  break
  1904. else
  1905.   echo "$ac_t""no" 1>&6
  1906. fi
  1907. done
  1908.  
  1909. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1910. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1911.   echo $ac_n "(cached) $ac_c" 1>&6
  1912. else
  1913.   cat > conftest.$ac_ext <<EOF
  1914. #line 1915 "configure"
  1915. #include "confdefs.h"
  1916.  
  1917. int main() { return 0; }
  1918. int t() {
  1919.  
  1920. /* Ultrix mips cc rejects this.  */
  1921. typedef int charset[2]; const charset x;
  1922. /* SunOS 4.1.1 cc rejects this.  */
  1923. char const *const *ccp;
  1924. char **p;
  1925. /* NEC SVR4.0.2 mips cc rejects this.  */
  1926. struct point {int x, y;};
  1927. static struct point const zero;
  1928. /* AIX XL C 1.02.0.0 rejects this.
  1929.    It does not let you subtract one const X* pointer from another in an arm
  1930.    of an if-expression whose if-part is not a constant expression */
  1931. const char *g = "string";
  1932. ccp = &g + (g ? g-g : 0);
  1933. /* HPUX 7.0 cc rejects these. */
  1934. ++ccp;
  1935. p = (char**) ccp;
  1936. ccp = (char const *const *) p;
  1937. { /* SCO 3.2v4 cc rejects this.  */
  1938.   char *t;
  1939.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1940.  
  1941.   *t++ = 0;
  1942. }
  1943. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1944.   int x[] = {25, 17};
  1945.   const int *foo = &x[0];
  1946.   ++foo;
  1947. }
  1948. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1949.   typedef const int *iptr;
  1950.   iptr p = 0;
  1951.   ++p;
  1952. }
  1953. { /* AIX XL C 1.02.0.0 rejects this saying
  1954.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1955.   struct s { int j; const int *ap[3]; };
  1956.   struct s *b; b->j = 5;
  1957. }
  1958. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1959.   const int foo = 10;
  1960. }
  1961.  
  1962. ; return 0; }
  1963. EOF
  1964. if eval $ac_compile; then
  1965.   rm -rf conftest*
  1966.   ac_cv_c_const=yes
  1967. else
  1968.   rm -rf conftest*
  1969.   ac_cv_c_const=no
  1970. fi
  1971. rm -f conftest*
  1972.  
  1973. fi
  1974. echo "$ac_t""$ac_cv_c_const" 1>&6
  1975. if test $ac_cv_c_const = no; then
  1976.   cat >> confdefs.h <<\EOF
  1977. #define const 
  1978. EOF
  1979.  
  1980. fi
  1981.  
  1982. echo $ac_n "checking for inline""... $ac_c" 1>&6
  1983. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  1984.   echo $ac_n "(cached) $ac_c" 1>&6
  1985. else
  1986.   ac_cv_c_inline=no
  1987. for ac_kw in inline __inline__ __inline; do
  1988.   cat > conftest.$ac_ext <<EOF
  1989. #line 1990 "configure"
  1990. #include "confdefs.h"
  1991.  
  1992. int main() { return 0; }
  1993. int t() {
  1994. } $ac_kw foo() {
  1995. ; return 0; }
  1996. EOF
  1997. if eval $ac_compile; then
  1998.   rm -rf conftest*
  1999.   ac_cv_c_inline=$ac_kw; break
  2000. fi
  2001. rm -f conftest*
  2002.  
  2003. done
  2004.  
  2005. fi
  2006. echo "$ac_t""$ac_cv_c_inline" 1>&6
  2007. case "$ac_cv_c_inline" in
  2008.   inline | yes) ;;
  2009.   no) cat >> confdefs.h <<\EOF
  2010. #define inline 
  2011. EOF
  2012.  ;;
  2013.   *)  cat >> confdefs.h <<EOF
  2014. #define inline $ac_cv_c_inline
  2015. EOF
  2016.  ;;
  2017. esac
  2018.  
  2019. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  2020. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  2021.   echo $ac_n "(cached) $ac_c" 1>&6
  2022. else
  2023.   cat > conftest.$ac_ext <<EOF
  2024. #line 2025 "configure"
  2025. #include "confdefs.h"
  2026. #include <sys/types.h>
  2027. #if STDC_HEADERS
  2028. #include <stdlib.h>
  2029. #endif
  2030. EOF
  2031. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2032.   egrep "off_t" >/dev/null 2>&1; then
  2033.   rm -rf conftest*
  2034.   ac_cv_type_off_t=yes
  2035. else
  2036.   rm -rf conftest*
  2037.   ac_cv_type_off_t=no
  2038. fi
  2039. rm -f conftest*
  2040.  
  2041. fi
  2042. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  2043. if test $ac_cv_type_off_t = no; then
  2044.   cat >> confdefs.h <<\EOF
  2045. #define off_t long
  2046. EOF
  2047.  
  2048. fi
  2049.  
  2050. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  2051. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  2052.   echo $ac_n "(cached) $ac_c" 1>&6
  2053. else
  2054.   cat > conftest.$ac_ext <<EOF
  2055. #line 2056 "configure"
  2056. #include "confdefs.h"
  2057. #include <sys/types.h>
  2058. #if STDC_HEADERS
  2059. #include <stdlib.h>
  2060. #endif
  2061. EOF
  2062. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2063.   egrep "pid_t" >/dev/null 2>&1; then
  2064.   rm -rf conftest*
  2065.   ac_cv_type_pid_t=yes
  2066. else
  2067.   rm -rf conftest*
  2068.   ac_cv_type_pid_t=no
  2069. fi
  2070. rm -f conftest*
  2071.  
  2072. fi
  2073. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  2074. if test $ac_cv_type_pid_t = no; then
  2075.   cat >> confdefs.h <<\EOF
  2076. #define pid_t int
  2077. EOF
  2078.  
  2079. fi
  2080.  
  2081. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  2082. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  2083.   echo $ac_n "(cached) $ac_c" 1>&6
  2084. else
  2085.   cat > conftest.$ac_ext <<EOF
  2086. #line 2087 "configure"
  2087. #include "confdefs.h"
  2088. #include <sys/types.h>
  2089. EOF
  2090. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2091.   egrep "uid_t" >/dev/null 2>&1; then
  2092.   rm -rf conftest*
  2093.   ac_cv_type_uid_t=yes
  2094. else
  2095.   rm -rf conftest*
  2096.   ac_cv_type_uid_t=no
  2097. fi
  2098. rm -f conftest*
  2099.  
  2100. fi
  2101. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  2102. if test $ac_cv_type_uid_t = no; then
  2103.   cat >> confdefs.h <<\EOF
  2104. #define uid_t int
  2105. EOF
  2106.  
  2107.   cat >> confdefs.h <<\EOF
  2108. #define gid_t int
  2109. EOF
  2110.  
  2111. fi
  2112.  
  2113. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  2114. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  2115.   echo $ac_n "(cached) $ac_c" 1>&6
  2116. else
  2117.   cat > conftest.$ac_ext <<EOF
  2118. #line 2119 "configure"
  2119. #include "confdefs.h"
  2120. #include <sys/types.h>
  2121. #if STDC_HEADERS
  2122. #include <stdlib.h>
  2123. #endif
  2124. EOF
  2125. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2126.   egrep "size_t" >/dev/null 2>&1; then
  2127.   rm -rf conftest*
  2128.   ac_cv_type_size_t=yes
  2129. else
  2130.   rm -rf conftest*
  2131.   ac_cv_type_size_t=no
  2132. fi
  2133. rm -f conftest*
  2134.  
  2135. fi
  2136. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  2137. if test $ac_cv_type_size_t = no; then
  2138.   cat >> confdefs.h <<\EOF
  2139. #define size_t unsigned
  2140. EOF
  2141.  
  2142. fi
  2143.  
  2144. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  2145. # for constant arguments.  Useless!
  2146. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  2147. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  2148.   echo $ac_n "(cached) $ac_c" 1>&6
  2149. else
  2150.   cat > conftest.$ac_ext <<EOF
  2151. #line 2152 "configure"
  2152. #include "confdefs.h"
  2153. #include <alloca.h>
  2154. int main() { return 0; }
  2155. int t() {
  2156. char *p = alloca(2 * sizeof(int));
  2157. ; return 0; }
  2158. EOF
  2159. if eval $ac_link; then
  2160.   rm -rf conftest*
  2161.   ac_cv_header_alloca_h=yes
  2162. else
  2163.   rm -rf conftest*
  2164.   ac_cv_header_alloca_h=no
  2165. fi
  2166. rm -f conftest*
  2167.  
  2168. fi
  2169. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  2170. if test $ac_cv_header_alloca_h = yes; then
  2171.   cat >> confdefs.h <<\EOF
  2172. #define HAVE_ALLOCA_H 1
  2173. EOF
  2174.  
  2175. fi
  2176.  
  2177. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  2178. if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
  2179.   echo $ac_n "(cached) $ac_c" 1>&6
  2180. else
  2181.   cat > conftest.$ac_ext <<EOF
  2182. #line 2183 "configure"
  2183. #include "confdefs.h"
  2184.  
  2185. #ifdef __GNUC__
  2186. # define alloca __builtin_alloca
  2187. #else
  2188. # if HAVE_ALLOCA_H
  2189. #  include <alloca.h>
  2190. # else
  2191. #  ifdef _AIX
  2192.  #pragma alloca
  2193. #  else
  2194. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  2195. char *alloca ();
  2196. #   endif
  2197. #  endif
  2198. # endif
  2199. #endif
  2200.  
  2201. int main() { return 0; }
  2202. int t() {
  2203. char *p = (char *) alloca(1);
  2204. ; return 0; }
  2205. EOF
  2206. if eval $ac_link; then
  2207.   rm -rf conftest*
  2208.   ac_cv_func_alloca=yes
  2209. else
  2210.   rm -rf conftest*
  2211.   ac_cv_func_alloca=no
  2212. fi
  2213. rm -f conftest*
  2214.  
  2215. fi
  2216. echo "$ac_t""$ac_cv_func_alloca" 1>&6
  2217. if test $ac_cv_func_alloca = yes; then
  2218.   cat >> confdefs.h <<\EOF
  2219. #define HAVE_ALLOCA 1
  2220. EOF
  2221.  
  2222. fi
  2223.  
  2224. if test $ac_cv_func_alloca = no; then
  2225.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  2226.   # that cause trouble.  Some versions do not even contain alloca or
  2227.   # contain a buggy version.  If you still want to use their alloca,
  2228.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  2229.   ALLOCA=alloca.o
  2230.   cat >> confdefs.h <<\EOF
  2231. #define C_ALLOCA 1
  2232. EOF
  2233.  
  2234.  
  2235. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  2236. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  2237.   echo $ac_n "(cached) $ac_c" 1>&6
  2238. else
  2239.   cat > conftest.$ac_ext <<EOF
  2240. #line 2241 "configure"
  2241. #include "confdefs.h"
  2242. #if defined(CRAY) && ! defined(CRAY2)
  2243. webecray
  2244. #else
  2245. wenotbecray
  2246. #endif
  2247.  
  2248. EOF
  2249. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2250.   egrep "webecray" >/dev/null 2>&1; then
  2251.   rm -rf conftest*
  2252.   ac_cv_os_cray=yes
  2253. else
  2254.   rm -rf conftest*
  2255.   ac_cv_os_cray=no
  2256. fi
  2257. rm -f conftest*
  2258.  
  2259. fi
  2260. echo "$ac_t""$ac_cv_os_cray" 1>&6
  2261. if test $ac_cv_os_cray = yes; then
  2262. for ac_func in _getb67 GETB67 getb67; do
  2263.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2264. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2265.   echo $ac_n "(cached) $ac_c" 1>&6
  2266. else
  2267.   cat > conftest.$ac_ext <<EOF
  2268. #line 2269 "configure"
  2269. #include "confdefs.h"
  2270. /* System header to define __stub macros and hopefully few prototypes,
  2271.     which can conflict with char $ac_func(); below.  */
  2272. #include <assert.h>
  2273. /* Override any gcc2 internal prototype to avoid an error.  */
  2274. char $ac_func(); 
  2275.  
  2276. int main() { return 0; }
  2277. int t() {
  2278.  
  2279. /* The GNU C library defines this for functions which it implements
  2280.     to always fail with ENOSYS.  Some functions are actually named
  2281.     something starting with __ and the normal name is an alias.  */
  2282. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2283. choke me
  2284. #else
  2285. $ac_func();
  2286. #endif
  2287.  
  2288. ; return 0; }
  2289. EOF
  2290. if eval $ac_link; then
  2291.   rm -rf conftest*
  2292.   eval "ac_cv_func_$ac_func=yes"
  2293. else
  2294.   rm -rf conftest*
  2295.   eval "ac_cv_func_$ac_func=no"
  2296. fi
  2297. rm -f conftest*
  2298.  
  2299. fi
  2300. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2301.   echo "$ac_t""yes" 1>&6
  2302.   cat >> confdefs.h <<EOF
  2303. #define CRAY_STACKSEG_END $ac_func
  2304. EOF
  2305.  
  2306.   break
  2307. else
  2308.   echo "$ac_t""no" 1>&6
  2309. fi
  2310.  
  2311. done
  2312. fi
  2313.  
  2314. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  2315. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  2316.   echo $ac_n "(cached) $ac_c" 1>&6
  2317. else
  2318.   if test "$cross_compiling" = yes; then
  2319.   ac_cv_c_stack_direction=0
  2320. else
  2321. cat > conftest.$ac_ext <<EOF
  2322. #line 2323 "configure"
  2323. #include "confdefs.h"
  2324. find_stack_direction ()
  2325. {
  2326.   static char *addr = 0;
  2327.   auto char dummy;
  2328.   if (addr == 0)
  2329.     {
  2330.       addr = &dummy;
  2331.       return find_stack_direction ();
  2332.     }
  2333.   else
  2334.     return (&dummy > addr) ? 1 : -1;
  2335. }
  2336. main ()
  2337. {
  2338.   exit (find_stack_direction() < 0);
  2339. }
  2340. EOF
  2341. eval $ac_link
  2342. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2343.   ac_cv_c_stack_direction=1
  2344. else
  2345.   ac_cv_c_stack_direction=-1
  2346. fi
  2347. fi
  2348. rm -fr conftest*
  2349. fi
  2350. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  2351. cat >> confdefs.h <<EOF
  2352. #define STACK_DIRECTION $ac_cv_c_stack_direction
  2353. EOF
  2354.  
  2355. fi
  2356.  
  2357. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  2358. if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
  2359.   echo $ac_n "(cached) $ac_c" 1>&6
  2360. else
  2361.   if test "$cross_compiling" = yes; then
  2362.   ac_cv_func_memcmp=no
  2363. else
  2364. cat > conftest.$ac_ext <<EOF
  2365. #line 2366 "configure"
  2366. #include "confdefs.h"
  2367.  
  2368. main()
  2369. {
  2370.   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  2371.   exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  2372. }
  2373.  
  2374. EOF
  2375. eval $ac_link
  2376. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2377.   ac_cv_func_memcmp=yes
  2378. else
  2379.   ac_cv_func_memcmp=no
  2380. fi
  2381. fi
  2382. rm -fr conftest*
  2383. fi
  2384. echo "$ac_t""$ac_cv_func_memcmp" 1>&6
  2385. test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
  2386.  
  2387. echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  2388. if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  2389.   echo $ac_n "(cached) $ac_c" 1>&6
  2390. else
  2391.   cat > conftest.$ac_ext <<EOF
  2392. #line 2393 "configure"
  2393. #include "confdefs.h"
  2394. #include <sys/types.h>
  2395. #include <signal.h>
  2396. #ifdef signal
  2397. #undef signal
  2398. #endif
  2399. #ifdef __cplusplus
  2400. extern "C"
  2401. #endif
  2402. void (*signal ()) ();
  2403. int main() { return 0; }
  2404. int t() {
  2405. int i;
  2406. ; return 0; }
  2407. EOF
  2408. if eval $ac_compile; then
  2409.   rm -rf conftest*
  2410.   ac_cv_type_signal=void
  2411. else
  2412.   rm -rf conftest*
  2413.   ac_cv_type_signal=int
  2414. fi
  2415. rm -f conftest*
  2416.  
  2417. fi
  2418. echo "$ac_t""$ac_cv_type_signal" 1>&6
  2419. cat >> confdefs.h <<EOF
  2420. #define RETSIGTYPE $ac_cv_type_signal
  2421. EOF
  2422.  
  2423.  
  2424. echo $ac_n "checking for strcoll""... $ac_c" 1>&6
  2425. if eval "test \"`echo '$''{'ac_cv_func_strcoll'+set}'`\" = set"; then
  2426.   echo $ac_n "(cached) $ac_c" 1>&6
  2427. else
  2428.   if test "$cross_compiling" = yes; then
  2429.   ac_cv_func_strcoll=no
  2430. else
  2431. cat > conftest.$ac_ext <<EOF
  2432. #line 2433 "configure"
  2433. #include "confdefs.h"
  2434. #include <string.h>
  2435. main ()
  2436. {
  2437.   exit (strcoll ("abc", "def") >= 0 ||
  2438.     strcoll ("ABC", "DEF") >= 0 ||
  2439.     strcoll ("123", "456") >= 0);
  2440. }
  2441. EOF
  2442. eval $ac_link
  2443. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2444.   ac_cv_func_strcoll=yes
  2445. else
  2446.   ac_cv_func_strcoll=no
  2447. fi
  2448. fi
  2449. rm -fr conftest*
  2450. fi
  2451. echo "$ac_t""$ac_cv_func_strcoll" 1>&6
  2452. if test $ac_cv_func_strcoll = yes; then
  2453.   cat >> confdefs.h <<\EOF
  2454. #define HAVE_STRCOLL 1
  2455. EOF
  2456.  
  2457. fi
  2458.  
  2459. ac_safe=`echo "vfork.h" | tr './\055' '___'`
  2460. echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
  2461. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2462.   echo $ac_n "(cached) $ac_c" 1>&6
  2463. else
  2464.   cat > conftest.$ac_ext <<EOF
  2465. #line 2466 "configure"
  2466. #include "confdefs.h"
  2467. #include <vfork.h>
  2468. EOF
  2469. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2470. ac_err=`grep -v '^ *+' conftest.out`
  2471. if test -z "$ac_err"; then
  2472.   rm -rf conftest*
  2473.   eval "ac_cv_header_$ac_safe=yes"
  2474. else
  2475.   echo "$ac_err" >&5
  2476.   rm -rf conftest*
  2477.   eval "ac_cv_header_$ac_safe=no"
  2478. fi
  2479. rm -f conftest*
  2480. fi
  2481. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2482.   echo "$ac_t""yes" 1>&6
  2483.   cat >> confdefs.h <<\EOF
  2484. #define HAVE_VFORK_H 1
  2485. EOF
  2486.  
  2487. else
  2488.   echo "$ac_t""no" 1>&6
  2489. fi
  2490.  
  2491. echo $ac_n "checking for working vfork""... $ac_c" 1>&6
  2492. if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
  2493.   echo $ac_n "(cached) $ac_c" 1>&6
  2494. else
  2495.   if test "$cross_compiling" = yes; then
  2496.   ac_cv_func_vfork=no
  2497. else
  2498. cat > conftest.$ac_ext <<EOF
  2499. #line 2500 "configure"
  2500. #include "confdefs.h"
  2501. /* Thanks to Paul Eggert for this test.  */
  2502. #include <stdio.h>
  2503. #include <sys/types.h>
  2504. #include <sys/stat.h>
  2505. #ifdef HAVE_UNISTD_H
  2506. #include <unistd.h>
  2507. #endif
  2508. #ifdef HAVE_VFORK_H
  2509. #include <vfork.h>
  2510. #endif
  2511. /* On some sparc systems, changes by the child to local and incoming
  2512.    argument registers are propagated back to the parent.
  2513.    The compiler is told about this with #include <vfork.h>,
  2514.    but some compilers (e.g. gcc -O) don't grok <vfork.h>.
  2515.    Test for this by using a static variable whose address
  2516.    is put into a register that is clobbered by the vfork.  */
  2517. static
  2518. #ifdef __cplusplus
  2519. sparc_address_test (int arg)
  2520. #else
  2521. sparc_address_test (arg) int arg;
  2522. #endif
  2523. {
  2524.   static pid_t child;
  2525.   if (!child) {
  2526.     child = vfork ();
  2527.     if (child < 0)
  2528.       perror ("vfork");
  2529.     if (!child) {
  2530.       arg = getpid();
  2531.       write(-1, "", 0);
  2532.       _exit (arg);
  2533.     }
  2534.   }
  2535. }
  2536. main() {
  2537.   pid_t parent = getpid ();
  2538.   pid_t child;
  2539.  
  2540.   sparc_address_test ();
  2541.  
  2542.   child = vfork ();
  2543.  
  2544.   if (child == 0) {
  2545.     /* Here is another test for sparc vfork register problems.
  2546.        This test uses lots of local variables, at least
  2547.        as many local variables as main has allocated so far
  2548.        including compiler temporaries.  4 locals are enough for
  2549.        gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
  2550.        A buggy compiler should reuse the register of parent
  2551.        for one of the local variables, since it will think that
  2552.        parent can't possibly be used any more in this routine.
  2553.        Assigning to the local variable will thus munge parent
  2554.        in the parent process.  */
  2555.     pid_t
  2556.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  2557.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  2558.     /* Convince the compiler that p..p7 are live; otherwise, it might
  2559.        use the same hardware register for all 8 local variables.  */
  2560.     if (p != p1 || p != p2 || p != p3 || p != p4
  2561.     || p != p5 || p != p6 || p != p7)
  2562.       _exit(1);
  2563.  
  2564.     /* On some systems (e.g. IRIX 3.3),
  2565.        vfork doesn't separate parent from child file descriptors.
  2566.        If the child closes a descriptor before it execs or exits,
  2567.        this munges the parent's descriptor as well.
  2568.        Test for this by closing stdout in the child.  */
  2569.     _exit(close(fileno(stdout)) != 0);
  2570.   } else {
  2571.     int status;
  2572.     struct stat st;
  2573.  
  2574.     while (wait(&status) != child)
  2575.       ;
  2576.     exit(
  2577.      /* Was there some problem with vforking?  */
  2578.      child < 0
  2579.  
  2580.      /* Did the child fail?  (This shouldn't happen.)  */
  2581.      || status
  2582.  
  2583.      /* Did the vfork/compiler bug occur?  */
  2584.      || parent != getpid()
  2585.  
  2586.      /* Did the file descriptor bug occur?  */
  2587.      || fstat(fileno(stdout), &st) != 0
  2588.      );
  2589.   }
  2590. }
  2591. EOF
  2592. eval $ac_link
  2593. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2594.   ac_cv_func_vfork=yes
  2595. else
  2596.   ac_cv_func_vfork=no
  2597. fi
  2598. fi
  2599. rm -fr conftest*
  2600. fi
  2601. echo "$ac_t""$ac_cv_func_vfork" 1>&6
  2602. if test $ac_cv_func_vfork = no; then
  2603.   cat >> confdefs.h <<\EOF
  2604. #define vfork fork
  2605. EOF
  2606.  
  2607. fi
  2608.  
  2609. echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  2610. if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  2611.   echo $ac_n "(cached) $ac_c" 1>&6
  2612. else
  2613.   cat > conftest.$ac_ext <<EOF
  2614. #line 2615 "configure"
  2615. #include "confdefs.h"
  2616. /* System header to define __stub macros and hopefully few prototypes,
  2617.     which can conflict with char vprintf(); below.  */
  2618. #include <assert.h>
  2619. /* Override any gcc2 internal prototype to avoid an error.  */
  2620. char vprintf(); 
  2621.  
  2622. int main() { return 0; }
  2623. int t() {
  2624.  
  2625. /* The GNU C library defines this for functions which it implements
  2626.     to always fail with ENOSYS.  Some functions are actually named
  2627.     something starting with __ and the normal name is an alias.  */
  2628. #if defined (__stub_vprintf) || defined (__stub___vprintf)
  2629. choke me
  2630. #else
  2631. vprintf();
  2632. #endif
  2633.  
  2634. ; return 0; }
  2635. EOF
  2636. if eval $ac_link; then
  2637.   rm -rf conftest*
  2638.   eval "ac_cv_func_vprintf=yes"
  2639. else
  2640.   rm -rf conftest*
  2641.   eval "ac_cv_func_vprintf=no"
  2642. fi
  2643. rm -f conftest*
  2644.  
  2645. fi
  2646. if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  2647.   echo "$ac_t""yes" 1>&6
  2648.   cat >> confdefs.h <<\EOF
  2649. #define HAVE_VPRINTF 1
  2650. EOF
  2651.  
  2652. else
  2653.   echo "$ac_t""no" 1>&6
  2654. fi
  2655.  
  2656. if test "$ac_cv_func_vprintf" != yes; then
  2657. echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  2658. if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  2659.   echo $ac_n "(cached) $ac_c" 1>&6
  2660. else
  2661.   cat > conftest.$ac_ext <<EOF
  2662. #line 2663 "configure"
  2663. #include "confdefs.h"
  2664. /* System header to define __stub macros and hopefully few prototypes,
  2665.     which can conflict with char _doprnt(); below.  */
  2666. #include <assert.h>
  2667. /* Override any gcc2 internal prototype to avoid an error.  */
  2668. char _doprnt(); 
  2669.  
  2670. int main() { return 0; }
  2671. int t() {
  2672.  
  2673. /* The GNU C library defines this for functions which it implements
  2674.     to always fail with ENOSYS.  Some functions are actually named
  2675.     something starting with __ and the normal name is an alias.  */
  2676. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  2677. choke me
  2678. #else
  2679. _doprnt();
  2680. #endif
  2681.  
  2682. ; return 0; }
  2683. EOF
  2684. if eval $ac_link; then
  2685.   rm -rf conftest*
  2686.   eval "ac_cv_func__doprnt=yes"
  2687. else
  2688.   rm -rf conftest*
  2689.   eval "ac_cv_func__doprnt=no"
  2690. fi
  2691. rm -f conftest*
  2692.  
  2693. fi
  2694. if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  2695.   echo "$ac_t""yes" 1>&6
  2696.   cat >> confdefs.h <<\EOF
  2697. #define HAVE_DOPRNT 1
  2698. EOF
  2699.  
  2700. else
  2701.   echo "$ac_t""no" 1>&6
  2702. fi
  2703.  
  2704. fi
  2705.  
  2706. echo $ac_n "checking for ANSI C sprintf""... $ac_c" 1>&6
  2707.  
  2708. if eval "test \"`echo '$''{'man_cv_func_ansi_sprintf'+set}'`\" = set"; then
  2709.   echo $ac_n "(cached) $ac_c" 1>&6
  2710. else
  2711.   if test "$cross_compiling" = yes; then
  2712.   man_cv_func_ansi_sprintf=no
  2713. else
  2714. cat > conftest.$ac_ext <<EOF
  2715. #line 2716 "configure"
  2716. #include "confdefs.h"
  2717. int main(void)
  2718. {char str[12];
  2719. if ((int)sprintf(str,"test_string")==11) exit(0);
  2720. exit(1);
  2721. }
  2722. EOF
  2723. eval $ac_link
  2724. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2725.   man_cv_func_ansi_sprintf=yes
  2726. else
  2727.   man_cv_func_ansi_sprintf=no
  2728. fi
  2729. fi
  2730. rm -fr conftest*
  2731. fi
  2732.  
  2733.  
  2734. test "$man_cv_func_ansi_sprintf" = "yes" && cat >> confdefs.h <<\EOF
  2735. #define ANSI_SPRINTF 1
  2736. EOF
  2737.  
  2738.  
  2739. echo "$ac_t""$man_cv_func_ansi_sprintf" 1>&6
  2740.  
  2741. echo $ac_n "checking for working pclose""... $ac_c" 1>&6
  2742.  
  2743. if eval "test \"`echo '$''{'man_cv_func_pclose'+set}'`\" = set"; then
  2744.   echo $ac_n "(cached) $ac_c" 1>&6
  2745. else
  2746.   if test "$cross_compiling" = yes; then
  2747.   man_cv_func_pclose=no
  2748. else
  2749. cat > conftest.$ac_ext <<EOF
  2750. #line 2751 "configure"
  2751. #include "confdefs.h"
  2752. #include <stdio.h>
  2753. #include <sys/wait.h>
  2754. int
  2755. try_pclose (FILE *f, int expected)
  2756. {
  2757.   int s;
  2758.   s = pclose (f);
  2759.   if (s != -1 && WIFEXITED (s))
  2760.     return WEXITSTATUS (s) != expected;
  2761.   else 
  2762.     return 1;
  2763. }
  2764. int
  2765. main (void)
  2766. {
  2767.   FILE *f, *t;
  2768.   int i, sf, st;
  2769.   for (i = 0;  i <= 1;  ++i) {
  2770.     f = popen ("false", "r");
  2771.     sleep (1);
  2772.     t = popen ("true", "r");
  2773.     sleep (1);
  2774.     if (i) {
  2775.       st = try_pclose (t, 0);
  2776.       sf = try_pclose (f, 1);
  2777.     } else {
  2778.       sf = try_pclose (f, 1);
  2779.       st = try_pclose (t, 0);
  2780.     }
  2781.     if (sf || st) exit(1);
  2782.   }
  2783.   exit(0);
  2784. }
  2785. EOF
  2786. eval $ac_link
  2787. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  2788.   man_cv_func_pclose=yes
  2789. else
  2790.   man_cv_func_pclose=no
  2791. fi
  2792. fi
  2793. rm -fr conftest*
  2794. fi
  2795.  
  2796.  
  2797. test "man_cv_func_pclose" = "no" && cat >> confdefs.h <<\EOF
  2798. #define BROKEN_PCLOSE 1
  2799. EOF
  2800.  
  2801.  
  2802. echo "$ac_t""$man_cv_func_pclose" 1>&6
  2803.  
  2804. if test "$db" = "no" || test "$db" = "db"
  2805. then
  2806.   ac_safe=`echo "db.h" | tr './\055' '___'`
  2807. echo $ac_n "checking for db.h""... $ac_c" 1>&6
  2808. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2809.   echo $ac_n "(cached) $ac_c" 1>&6
  2810. else
  2811.   cat > conftest.$ac_ext <<EOF
  2812. #line 2813 "configure"
  2813. #include "confdefs.h"
  2814. #include <db.h>
  2815. EOF
  2816. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2817. ac_err=`grep -v '^ *+' conftest.out`
  2818. if test -z "$ac_err"; then
  2819.   rm -rf conftest*
  2820.   eval "ac_cv_header_$ac_safe=yes"
  2821. else
  2822.   echo "$ac_err" >&5
  2823.   rm -rf conftest*
  2824.   eval "ac_cv_header_$ac_safe=no"
  2825. fi
  2826. rm -f conftest*
  2827. fi
  2828. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2829.   echo "$ac_t""yes" 1>&6
  2830.   
  2831.     for lib in db c
  2832.     do
  2833.       echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
  2834. if eval "test \"`echo '$''{'ac_cv_lib_$lib'+set}'`\" = set"; then
  2835.   echo $ac_n "(cached) $ac_c" 1>&6
  2836. else
  2837.   ac_save_LIBS="$LIBS"
  2838. LIBS="-l$lib  $LIBS"
  2839. cat > conftest.$ac_ext <<EOF
  2840. #line 2841 "configure"
  2841. #include "confdefs.h"
  2842.  
  2843. int main() { return 0; }
  2844. int t() {
  2845. dbopen()
  2846. ; return 0; }
  2847. EOF
  2848. if eval $ac_link; then
  2849.   rm -rf conftest*
  2850.   eval "ac_cv_lib_$lib=yes"
  2851. else
  2852.   rm -rf conftest*
  2853.   eval "ac_cv_lib_$lib=no"
  2854. fi
  2855. rm -f conftest*
  2856. LIBS="$ac_save_LIBS"
  2857.  
  2858. fi
  2859. if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
  2860.   echo "$ac_t""yes" 1>&6
  2861.   test "$lib" = "c" || LIBS="$LIBS -l$lib" 
  2862.                      cat >> confdefs.h <<\EOF
  2863. #define BTREE 1
  2864. EOF
  2865.  
  2866.                      db=yes
  2867. else
  2868.   echo "$ac_t""no" 1>&6
  2869. db=no
  2870. fi
  2871.  
  2872.       test "$db" = "yes" && break
  2873.     done
  2874. else
  2875.   echo "$ac_t""no" 1>&6
  2876. db=no
  2877. fi
  2878.  
  2879. fi
  2880. if test "$db" = "no" || test "$db" = "gdbm"
  2881. then
  2882.   ac_safe=`echo "gdbm.h" | tr './\055' '___'`
  2883. echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6
  2884. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2885.   echo $ac_n "(cached) $ac_c" 1>&6
  2886. else
  2887.   cat > conftest.$ac_ext <<EOF
  2888. #line 2889 "configure"
  2889. #include "confdefs.h"
  2890. #include <gdbm.h>
  2891. EOF
  2892. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2893. ac_err=`grep -v '^ *+' conftest.out`
  2894. if test -z "$ac_err"; then
  2895.   rm -rf conftest*
  2896.   eval "ac_cv_header_$ac_safe=yes"
  2897. else
  2898.   echo "$ac_err" >&5
  2899.   rm -rf conftest*
  2900.   eval "ac_cv_header_$ac_safe=no"
  2901. fi
  2902. rm -f conftest*
  2903. fi
  2904. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2905.   echo "$ac_t""yes" 1>&6
  2906.   
  2907.     for lib in gdbm c dbm
  2908.     do
  2909.       echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
  2910. if eval "test \"`echo '$''{'ac_cv_lib_$lib'+set}'`\" = set"; then
  2911.   echo $ac_n "(cached) $ac_c" 1>&6
  2912. else
  2913.   ac_save_LIBS="$LIBS"
  2914. LIBS="-l$lib  $LIBS"
  2915. cat > conftest.$ac_ext <<EOF
  2916. #line 2917 "configure"
  2917. #include "confdefs.h"
  2918.  
  2919. int main() { return 0; }
  2920. int t() {
  2921. gdbm_fetch()
  2922. ; return 0; }
  2923. EOF
  2924. if eval $ac_link; then
  2925.   rm -rf conftest*
  2926.   eval "ac_cv_lib_$lib=yes"
  2927. else
  2928.   rm -rf conftest*
  2929.   eval "ac_cv_lib_$lib=no"
  2930. fi
  2931. rm -f conftest*
  2932. LIBS="$ac_save_LIBS"
  2933.  
  2934. fi
  2935. if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
  2936.   echo "$ac_t""yes" 1>&6
  2937.   test "$lib" = "c" || LIBS="$LIBS -l$lib" 
  2938.                                      cat >> confdefs.h <<\EOF
  2939. #define GDBM 1
  2940. EOF
  2941.  
  2942.                                      db=yes
  2943. else
  2944.   echo "$ac_t""no" 1>&6
  2945. db=no
  2946. fi
  2947.  
  2948.       if test "$db" = "yes" 
  2949.       then
  2950.         for ac_func in gdbm_exists gdbm_setopt
  2951. do
  2952. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  2953. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  2954.   echo $ac_n "(cached) $ac_c" 1>&6
  2955. else
  2956.   cat > conftest.$ac_ext <<EOF
  2957. #line 2958 "configure"
  2958. #include "confdefs.h"
  2959. /* System header to define __stub macros and hopefully few prototypes,
  2960.     which can conflict with char $ac_func(); below.  */
  2961. #include <assert.h>
  2962. /* Override any gcc2 internal prototype to avoid an error.  */
  2963. char $ac_func(); 
  2964.  
  2965. int main() { return 0; }
  2966. int t() {
  2967.  
  2968. /* The GNU C library defines this for functions which it implements
  2969.     to always fail with ENOSYS.  Some functions are actually named
  2970.     something starting with __ and the normal name is an alias.  */
  2971. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2972. choke me
  2973. #else
  2974. $ac_func();
  2975. #endif
  2976.  
  2977. ; return 0; }
  2978. EOF
  2979. if eval $ac_link; then
  2980.   rm -rf conftest*
  2981.   eval "ac_cv_func_$ac_func=yes"
  2982. else
  2983.   rm -rf conftest*
  2984.   eval "ac_cv_func_$ac_func=no"
  2985. fi
  2986. rm -f conftest*
  2987.  
  2988. fi
  2989. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  2990.   echo "$ac_t""yes" 1>&6
  2991.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  2992.   cat >> confdefs.h <<EOF
  2993. #define $ac_tr_func 1
  2994. EOF
  2995.  
  2996. else
  2997.   echo "$ac_t""no" 1>&6
  2998. fi
  2999. done
  3000.  
  3001.         break
  3002.       fi
  3003.     done
  3004. else
  3005.   echo "$ac_t""no" 1>&6
  3006. db=no
  3007. fi
  3008.  
  3009. fi
  3010. if test "$db" = "no" || test "$db" = "ndbm"
  3011. then
  3012.   ac_safe=`echo "ndbm.h" | tr './\055' '___'`
  3013. echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
  3014. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  3015.   echo $ac_n "(cached) $ac_c" 1>&6
  3016. else
  3017.   cat > conftest.$ac_ext <<EOF
  3018. #line 3019 "configure"
  3019. #include "confdefs.h"
  3020. #include <ndbm.h>
  3021. EOF
  3022. eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  3023. ac_err=`grep -v '^ *+' conftest.out`
  3024. if test -z "$ac_err"; then
  3025.   rm -rf conftest*
  3026.   eval "ac_cv_header_$ac_safe=yes"
  3027. else
  3028.   echo "$ac_err" >&5
  3029.   rm -rf conftest*
  3030.   eval "ac_cv_header_$ac_safe=no"
  3031. fi
  3032. rm -f conftest*
  3033. fi
  3034. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  3035.   echo "$ac_t""yes" 1>&6
  3036.   
  3037.     for lib in ndbm c dbm
  3038.     do
  3039.       echo $ac_n "checking for -l$lib""... $ac_c" 1>&6
  3040. if eval "test \"`echo '$''{'ac_cv_lib_$lib'+set}'`\" = set"; then
  3041.   echo $ac_n "(cached) $ac_c" 1>&6
  3042. else
  3043.   ac_save_LIBS="$LIBS"
  3044. LIBS="-l$lib  $LIBS"
  3045. cat > conftest.$ac_ext <<EOF
  3046. #line 3047 "configure"
  3047. #include "confdefs.h"
  3048.  
  3049. int main() { return 0; }
  3050. int t() {
  3051. dbm_fetch()
  3052. ; return 0; }
  3053. EOF
  3054. if eval $ac_link; then
  3055.   rm -rf conftest*
  3056.   eval "ac_cv_lib_$lib=yes"
  3057. else
  3058.   rm -rf conftest*
  3059.   eval "ac_cv_lib_$lib=no"
  3060. fi
  3061. rm -f conftest*
  3062. LIBS="$ac_save_LIBS"
  3063.  
  3064. fi
  3065. if eval "test \"`echo '$ac_cv_lib_'$lib`\" = yes"; then
  3066.   echo "$ac_t""yes" 1>&6
  3067.   test "$lib" = "c" || LIBS="$LIBS -l$lib"
  3068.                           cat >> confdefs.h <<\EOF
  3069. #define NDBM 1
  3070. EOF
  3071.  
  3072.                     db=yes
  3073. else
  3074.   echo "$ac_t""no" 1>&6
  3075. db=no
  3076. fi
  3077.  
  3078.       test "$db" = "yes" && break
  3079.       done
  3080. else
  3081.   echo "$ac_t""no" 1>&6
  3082. db=no
  3083. fi
  3084.  
  3085. fi 
  3086. if test "$db" != "yes"
  3087. then 
  3088.     if test "$db" = "no"
  3089.     then
  3090.       { echo "configure: error: Fatal: no supported database library/header found" 1>&2; exit 1; }
  3091.     else
  3092.       { echo "configure: error: Fatal: $db: unsupported database library" 1>&2; exit 1; }
  3093.     fi
  3094. fi
  3095. if test "$debug" = "on" 
  3096. then
  3097.   echo $ac_n "checking for -lefence""... $ac_c" 1>&6
  3098. if eval "test \"`echo '$''{'ac_cv_lib_efence'+set}'`\" = set"; then
  3099.   echo $ac_n "(cached) $ac_c" 1>&6
  3100. else
  3101.   ac_save_LIBS="$LIBS"
  3102. LIBS="-lefence  $LIBS"
  3103. cat > conftest.$ac_ext <<EOF
  3104. #line 3105 "configure"
  3105. #include "confdefs.h"
  3106.  
  3107. int main() { return 0; }
  3108. int t() {
  3109. EF_Print()
  3110. ; return 0; }
  3111. EOF
  3112. if eval $ac_link; then
  3113.   rm -rf conftest*
  3114.   eval "ac_cv_lib_efence=yes"
  3115. else
  3116.   rm -rf conftest*
  3117.   eval "ac_cv_lib_efence=no"
  3118. fi
  3119. rm -f conftest*
  3120. LIBS="$ac_save_LIBS"
  3121.  
  3122. fi
  3123. if eval "test \"`echo '$ac_cv_lib_'efence`\" = yes"; then
  3124.   echo "$ac_t""yes" 1>&6
  3125.     ac_tr_lib=HAVE_LIB`echo efence | tr '[a-z]' '[A-Z]'`
  3126.   cat >> confdefs.h <<EOF
  3127. #define $ac_tr_lib 1
  3128. EOF
  3129.  
  3130.   LIBS="-lefence $LIBS"
  3131.  
  3132. else
  3133.   echo "$ac_t""no" 1>&6
  3134. fi
  3135.  
  3136. fi
  3137. for ac_func in getcwd getwd
  3138. do
  3139. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3140. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3141.   echo $ac_n "(cached) $ac_c" 1>&6
  3142. else
  3143.   cat > conftest.$ac_ext <<EOF
  3144. #line 3145 "configure"
  3145. #include "confdefs.h"
  3146. /* System header to define __stub macros and hopefully few prototypes,
  3147.     which can conflict with char $ac_func(); below.  */
  3148. #include <assert.h>
  3149. /* Override any gcc2 internal prototype to avoid an error.  */
  3150. char $ac_func(); 
  3151.  
  3152. int main() { return 0; }
  3153. int t() {
  3154.  
  3155. /* The GNU C library defines this for functions which it implements
  3156.     to always fail with ENOSYS.  Some functions are actually named
  3157.     something starting with __ and the normal name is an alias.  */
  3158. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3159. choke me
  3160. #else
  3161. $ac_func();
  3162. #endif
  3163.  
  3164. ; return 0; }
  3165. EOF
  3166. if eval $ac_link; then
  3167.   rm -rf conftest*
  3168.   eval "ac_cv_func_$ac_func=yes"
  3169. else
  3170.   rm -rf conftest*
  3171.   eval "ac_cv_func_$ac_func=no"
  3172. fi
  3173. rm -f conftest*
  3174.  
  3175. fi
  3176. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3177.   echo "$ac_t""yes" 1>&6
  3178.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3179.   cat >> confdefs.h <<EOF
  3180. #define $ac_tr_func 1
  3181. EOF
  3182.  break
  3183. else
  3184.   echo "$ac_t""no" 1>&6
  3185. fi
  3186. done
  3187.  
  3188. for ac_func in atexit on_exit
  3189. do
  3190. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3191. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3192.   echo $ac_n "(cached) $ac_c" 1>&6
  3193. else
  3194.   cat > conftest.$ac_ext <<EOF
  3195. #line 3196 "configure"
  3196. #include "confdefs.h"
  3197. /* System header to define __stub macros and hopefully few prototypes,
  3198.     which can conflict with char $ac_func(); below.  */
  3199. #include <assert.h>
  3200. /* Override any gcc2 internal prototype to avoid an error.  */
  3201. char $ac_func(); 
  3202.  
  3203. int main() { return 0; }
  3204. int t() {
  3205.  
  3206. /* The GNU C library defines this for functions which it implements
  3207.     to always fail with ENOSYS.  Some functions are actually named
  3208.     something starting with __ and the normal name is an alias.  */
  3209. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3210. choke me
  3211. #else
  3212. $ac_func();
  3213. #endif
  3214.  
  3215. ; return 0; }
  3216. EOF
  3217. if eval $ac_link; then
  3218.   rm -rf conftest*
  3219.   eval "ac_cv_func_$ac_func=yes"
  3220. else
  3221.   rm -rf conftest*
  3222.   eval "ac_cv_func_$ac_func=no"
  3223. fi
  3224. rm -f conftest*
  3225.  
  3226. fi
  3227. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3228.   echo "$ac_t""yes" 1>&6
  3229.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3230.   cat >> confdefs.h <<EOF
  3231. #define $ac_tr_func 1
  3232. EOF
  3233.  break
  3234. else
  3235.   echo "$ac_t""no" 1>&6
  3236. fi
  3237. done
  3238.  
  3239. for ac_func in setreuid strerror
  3240. do
  3241. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3242. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3243.   echo $ac_n "(cached) $ac_c" 1>&6
  3244. else
  3245.   cat > conftest.$ac_ext <<EOF
  3246. #line 3247 "configure"
  3247. #include "confdefs.h"
  3248. /* System header to define __stub macros and hopefully few prototypes,
  3249.     which can conflict with char $ac_func(); below.  */
  3250. #include <assert.h>
  3251. /* Override any gcc2 internal prototype to avoid an error.  */
  3252. char $ac_func(); 
  3253.  
  3254. int main() { return 0; }
  3255. int t() {
  3256.  
  3257. /* The GNU C library defines this for functions which it implements
  3258.     to always fail with ENOSYS.  Some functions are actually named
  3259.     something starting with __ and the normal name is an alias.  */
  3260. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3261. choke me
  3262. #else
  3263. $ac_func();
  3264. #endif
  3265.  
  3266. ; return 0; }
  3267. EOF
  3268. if eval $ac_link; then
  3269.   rm -rf conftest*
  3270.   eval "ac_cv_func_$ac_func=yes"
  3271. else
  3272.   rm -rf conftest*
  3273.   eval "ac_cv_func_$ac_func=no"
  3274. fi
  3275. rm -f conftest*
  3276.  
  3277. fi
  3278. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3279.   echo "$ac_t""yes" 1>&6
  3280.     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
  3281.   cat >> confdefs.h <<EOF
  3282. #define $ac_tr_func 1
  3283. EOF
  3284.  
  3285. else
  3286.   echo "$ac_t""no" 1>&6
  3287. fi
  3288. done
  3289.  
  3290. echo $ac_n "checking for setlocale""... $ac_c" 1>&6
  3291. if eval "test \"`echo '$''{'ac_cv_func_setlocale'+set}'`\" = set"; then
  3292.   echo $ac_n "(cached) $ac_c" 1>&6
  3293. else
  3294.   cat > conftest.$ac_ext <<EOF
  3295. #line 3296 "configure"
  3296. #include "confdefs.h"
  3297. /* System header to define __stub macros and hopefully few prototypes,
  3298.     which can conflict with char setlocale(); below.  */
  3299. #include <assert.h>
  3300. /* Override any gcc2 internal prototype to avoid an error.  */
  3301. char setlocale(); 
  3302.  
  3303. int main() { return 0; }
  3304. int t() {
  3305.  
  3306. /* The GNU C library defines this for functions which it implements
  3307.     to always fail with ENOSYS.  Some functions are actually named
  3308.     something starting with __ and the normal name is an alias.  */
  3309. #if defined (__stub_setlocale) || defined (__stub___setlocale)
  3310. choke me
  3311. #else
  3312. setlocale();
  3313. #endif
  3314.  
  3315. ; return 0; }
  3316. EOF
  3317. if eval $ac_link; then
  3318.   rm -rf conftest*
  3319.   eval "ac_cv_func_setlocale=yes"
  3320. else
  3321.   rm -rf conftest*
  3322.   eval "ac_cv_func_setlocale=no"
  3323. fi
  3324. rm -f conftest*
  3325.  
  3326. fi
  3327. if eval "test \"`echo '$ac_cv_func_'setlocale`\" = yes"; then
  3328.   echo "$ac_t""yes" 1>&6
  3329.   cat >> confdefs.h <<\EOF
  3330. #define HAVE_SETLOCALE 1
  3331. EOF
  3332.  
  3333.   echo $ac_n "checking for catopen""... $ac_c" 1>&6
  3334. if eval "test \"`echo '$''{'ac_cv_func_catopen'+set}'`\" = set"; then
  3335.   echo $ac_n "(cached) $ac_c" 1>&6
  3336. else
  3337.   cat > conftest.$ac_ext <<EOF
  3338. #line 3339 "configure"
  3339. #include "confdefs.h"
  3340. /* System header to define __stub macros and hopefully few prototypes,
  3341.     which can conflict with char catopen(); below.  */
  3342. #include <assert.h>
  3343. /* Override any gcc2 internal prototype to avoid an error.  */
  3344. char catopen(); 
  3345.  
  3346. int main() { return 0; }
  3347. int t() {
  3348.  
  3349. /* The GNU C library defines this for functions which it implements
  3350.     to always fail with ENOSYS.  Some functions are actually named
  3351.     something starting with __ and the normal name is an alias.  */
  3352. #if defined (__stub_catopen) || defined (__stub___catopen)
  3353. choke me
  3354. #else
  3355. catopen();
  3356. #endif
  3357.  
  3358. ; return 0; }
  3359. EOF
  3360. if eval $ac_link; then
  3361.   rm -rf conftest*
  3362.   eval "ac_cv_func_catopen=yes"
  3363. else
  3364.   rm -rf conftest*
  3365.   eval "ac_cv_func_catopen=no"
  3366. fi
  3367. rm -f conftest*
  3368.  
  3369. fi
  3370. if eval "test \"`echo '$ac_cv_func_'catopen`\" = yes"; then
  3371.   echo "$ac_t""yes" 1>&6
  3372.   nls=on
  3373. else
  3374.   echo "$ac_t""no" 1>&6
  3375. echo $ac_n "checking for -li""... $ac_c" 1>&6
  3376. if eval "test \"`echo '$''{'ac_cv_lib_i'+set}'`\" = set"; then
  3377.   echo $ac_n "(cached) $ac_c" 1>&6
  3378. else
  3379.   ac_save_LIBS="$LIBS"
  3380. LIBS="-li  $LIBS"
  3381. cat > conftest.$ac_ext <<EOF
  3382. #line 3383 "configure"
  3383. #include "confdefs.h"
  3384.  
  3385. int main() { return 0; }
  3386. int t() {
  3387. catopen()
  3388. ; return 0; }
  3389. EOF
  3390. if eval $ac_link; then
  3391.   rm -rf conftest*
  3392.   eval "ac_cv_lib_i=yes"
  3393. else
  3394.   rm -rf conftest*
  3395.   eval "ac_cv_lib_i=no"
  3396. fi
  3397. rm -f conftest*
  3398. LIBS="$ac_save_LIBS"
  3399.  
  3400. fi
  3401. if eval "test \"`echo '$ac_cv_lib_'i`\" = yes"; then
  3402.   echo "$ac_t""yes" 1>&6
  3403.   LIBS="$LIBS -li"
  3404.       nls=on
  3405. else
  3406.   echo "$ac_t""no" 1>&6
  3407. nls=off
  3408. fi
  3409.  
  3410. fi
  3411.  
  3412. else
  3413.   echo "$ac_t""no" 1>&6
  3414. nls=off
  3415. fi
  3416.  
  3417. echo $ac_n "checking for regcomp""... $ac_c" 1>&6
  3418. if eval "test \"`echo '$''{'ac_cv_func_regcomp'+set}'`\" = set"; then
  3419.   echo $ac_n "(cached) $ac_c" 1>&6
  3420. else
  3421.   cat > conftest.$ac_ext <<EOF
  3422. #line 3423 "configure"
  3423. #include "confdefs.h"
  3424. /* System header to define __stub macros and hopefully few prototypes,
  3425.     which can conflict with char regcomp(); below.  */
  3426. #include <assert.h>
  3427. /* Override any gcc2 internal prototype to avoid an error.  */
  3428. char regcomp(); 
  3429.  
  3430. int main() { return 0; }
  3431. int t() {
  3432.  
  3433. /* The GNU C library defines this for functions which it implements
  3434.     to always fail with ENOSYS.  Some functions are actually named
  3435.     something starting with __ and the normal name is an alias.  */
  3436. #if defined (__stub_regcomp) || defined (__stub___regcomp)
  3437. choke me
  3438. #else
  3439. regcomp();
  3440. #endif
  3441.  
  3442. ; return 0; }
  3443. EOF
  3444. if eval $ac_link; then
  3445.   rm -rf conftest*
  3446.   eval "ac_cv_func_regcomp=yes"
  3447. else
  3448.   rm -rf conftest*
  3449.   eval "ac_cv_func_regcomp=no"
  3450. fi
  3451. rm -f conftest*
  3452.  
  3453. fi
  3454. if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then
  3455.   echo "$ac_t""yes" 1>&6
  3456.   cat >> confdefs.h <<\EOF
  3457. #define POSIX_REGEX 1
  3458. EOF
  3459.  
  3460. else
  3461.   echo "$ac_t""no" 1>&6
  3462. echo $ac_n "checking for re_comp""... $ac_c" 1>&6
  3463. if eval "test \"`echo '$''{'ac_cv_func_re_comp'+set}'`\" = set"; then
  3464.   echo $ac_n "(cached) $ac_c" 1>&6
  3465. else
  3466.   cat > conftest.$ac_ext <<EOF
  3467. #line 3468 "configure"
  3468. #include "confdefs.h"
  3469. /* System header to define __stub macros and hopefully few prototypes,
  3470.     which can conflict with char re_comp(); below.  */
  3471. #include <assert.h>
  3472. /* Override any gcc2 internal prototype to avoid an error.  */
  3473. char re_comp(); 
  3474.  
  3475. int main() { return 0; }
  3476. int t() {
  3477.  
  3478. /* The GNU C library defines this for functions which it implements
  3479.     to always fail with ENOSYS.  Some functions are actually named
  3480.     something starting with __ and the normal name is an alias.  */
  3481. #if defined (__stub_re_comp) || defined (__stub___re_comp)
  3482. choke me
  3483. #else
  3484. re_comp();
  3485. #endif
  3486.  
  3487. ; return 0; }
  3488. EOF
  3489. if eval $ac_link; then
  3490.   rm -rf conftest*
  3491.   eval "ac_cv_func_re_comp=yes"
  3492. else
  3493.   rm -rf conftest*
  3494.   eval "ac_cv_func_re_comp=no"
  3495. fi
  3496. rm -f conftest*
  3497.  
  3498. fi
  3499. if eval "test \"`echo '$ac_cv_func_'re_comp`\" = yes"; then
  3500.   echo "$ac_t""yes" 1>&6
  3501.   cat >> confdefs.h <<\EOF
  3502. #define BSD_REGEX 1
  3503. EOF
  3504.  
  3505. else
  3506.   echo "$ac_t""no" 1>&6
  3507. echo "configure: warning: no regex routines found" 1>&2
  3508. fi
  3509.  
  3510. fi
  3511.  
  3512. echo $ac_n "checking for fnmatch""... $ac_c" 1>&6
  3513. if eval "test \"`echo '$''{'ac_cv_func_fnmatch'+set}'`\" = set"; then
  3514.   echo $ac_n "(cached) $ac_c" 1>&6
  3515. else
  3516.   cat > conftest.$ac_ext <<EOF
  3517. #line 3518 "configure"
  3518. #include "confdefs.h"
  3519. /* System header to define __stub macros and hopefully few prototypes,
  3520.     which can conflict with char fnmatch(); below.  */
  3521. #include <assert.h>
  3522. /* Override any gcc2 internal prototype to avoid an error.  */
  3523. char fnmatch(); 
  3524.  
  3525. int main() { return 0; }
  3526. int t() {
  3527.  
  3528. /* The GNU C library defines this for functions which it implements
  3529.     to always fail with ENOSYS.  Some functions are actually named
  3530.     something starting with __ and the normal name is an alias.  */
  3531. #if defined (__stub_fnmatch) || defined (__stub___fnmatch)
  3532. choke me
  3533. #else
  3534. fnmatch();
  3535. #endif
  3536.  
  3537. ; return 0; }
  3538. EOF
  3539. if eval $ac_link; then
  3540.   rm -rf conftest*
  3541.   eval "ac_cv_func_fnmatch=yes"
  3542. else
  3543.   rm -rf conftest*
  3544.   eval "ac_cv_func_fnmatch=no"
  3545. fi
  3546. rm -f conftest*
  3547.  
  3548. fi
  3549. if eval "test \"`echo '$ac_cv_func_'fnmatch`\" = yes"; then
  3550.   echo "$ac_t""yes" 1>&6
  3551.   cat >> confdefs.h <<\EOF
  3552. #define HAVE_FNMATCH_H 1
  3553. EOF
  3554.  
  3555. else
  3556.   echo "$ac_t""no" 1>&6
  3557. LIBOBJS="$LIBOBJS fnmatch.o"
  3558. fi
  3559.  
  3560. echo $ac_n "checking for globfree""... $ac_c" 1>&6
  3561. if eval "test \"`echo '$''{'ac_cv_func_globfree'+set}'`\" = set"; then
  3562.   echo $ac_n "(cached) $ac_c" 1>&6
  3563. else
  3564.   cat > conftest.$ac_ext <<EOF
  3565. #line 3566 "configure"
  3566. #include "confdefs.h"
  3567. /* System header to define __stub macros and hopefully few prototypes,
  3568.     which can conflict with char globfree(); below.  */
  3569. #include <assert.h>
  3570. /* Override any gcc2 internal prototype to avoid an error.  */
  3571. char globfree(); 
  3572.  
  3573. int main() { return 0; }
  3574. int t() {
  3575.  
  3576. /* The GNU C library defines this for functions which it implements
  3577.     to always fail with ENOSYS.  Some functions are actually named
  3578.     something starting with __ and the normal name is an alias.  */
  3579. #if defined (__stub_globfree) || defined (__stub___globfree)
  3580. choke me
  3581. #else
  3582. globfree();
  3583. #endif
  3584.  
  3585. ; return 0; }
  3586. EOF
  3587. if eval $ac_link; then
  3588.   rm -rf conftest*
  3589.   eval "ac_cv_func_globfree=yes"
  3590. else
  3591.   rm -rf conftest*
  3592.   eval "ac_cv_func_globfree=no"
  3593. fi
  3594. rm -f conftest*
  3595.  
  3596. fi
  3597. if eval "test \"`echo '$ac_cv_func_'globfree`\" = yes"; then
  3598.   echo "$ac_t""yes" 1>&6
  3599.   cat >> confdefs.h <<\EOF
  3600. #define HAVE_GLOB_H 1
  3601. EOF
  3602.  
  3603. else
  3604.   echo "$ac_t""no" 1>&6
  3605. LIBOBJS="$LIBOBJS glob.o"
  3606. fi
  3607.  
  3608. echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
  3609. if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
  3610.   echo $ac_n "(cached) $ac_c" 1>&6
  3611. else
  3612.   cat > conftest.$ac_ext <<EOF
  3613. #line 3614 "configure"
  3614. #include "confdefs.h"
  3615. /* System header to define __stub macros and hopefully few prototypes,
  3616.     which can conflict with char getopt_long(); below.  */
  3617. #include <assert.h>
  3618. /* Override any gcc2 internal prototype to avoid an error.  */
  3619. char getopt_long(); 
  3620.  
  3621. int main() { return 0; }
  3622. int t() {
  3623.  
  3624. /* The GNU C library defines this for functions which it implements
  3625.     to always fail with ENOSYS.  Some functions are actually named
  3626.     something starting with __ and the normal name is an alias.  */
  3627. #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
  3628. choke me
  3629. #else
  3630. getopt_long();
  3631. #endif
  3632.  
  3633. ; return 0; }
  3634. EOF
  3635. if eval $ac_link; then
  3636.   rm -rf conftest*
  3637.   eval "ac_cv_func_getopt_long=yes"
  3638. else
  3639.   rm -rf conftest*
  3640.   eval "ac_cv_func_getopt_long=no"
  3641. fi
  3642. rm -f conftest*
  3643.  
  3644. fi
  3645. if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
  3646.   echo "$ac_t""yes" 1>&6
  3647.   cat >> confdefs.h <<\EOF
  3648. #define HAVE_GETOPT_H 1
  3649. EOF
  3650.  
  3651. else
  3652.   echo "$ac_t""no" 1>&6
  3653. LIBOBJS="$LIBOBJS getopt.o getopt1.o"
  3654. fi
  3655.  
  3656. for ac_func in flock putenv realpath rename basename tempnam waitpid strstr strsep strcspn strspn
  3657. do
  3658. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  3659. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  3660.   echo $ac_n "(cached) $ac_c" 1>&6
  3661. else
  3662.   cat > conftest.$ac_ext <<EOF
  3663. #line 3664 "configure"
  3664. #include "confdefs.h"
  3665. /* System header to define __stub macros and hopefully few prototypes,
  3666.     which can conflict with char $ac_func(); below.  */
  3667. #include <assert.h>
  3668. /* Override any gcc2 internal prototype to avoid an error.  */
  3669. char $ac_func(); 
  3670.  
  3671. int main() { return 0; }
  3672. int t() {
  3673.  
  3674. /* The GNU C library defines this for functions which it implements
  3675.     to always fail with ENOSYS.  Some functions are actually named
  3676.     something starting with __ and the normal name is an alias.  */
  3677. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  3678. choke me
  3679. #else
  3680. $ac_func();
  3681. #endif
  3682.  
  3683. ; return 0; }
  3684. EOF
  3685. if eval $ac_link; then
  3686.   rm -rf conftest*
  3687.   eval "ac_cv_func_$ac_func=yes"
  3688. else
  3689.   rm -rf conftest*
  3690.   eval "ac_cv_func_$ac_func=no"
  3691. fi
  3692. rm -f conftest*
  3693.  
  3694. fi
  3695. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  3696.   echo "$ac_t""yes" 1>&6
  3697.   :
  3698. else
  3699.   echo "$ac_t""no" 1>&6
  3700. LIBOBJS="$LIBOBJS ${ac_func}.o"
  3701. fi
  3702.  
  3703. done
  3704.  
  3705. echo "default CC = \"$CC\"" 1>&6
  3706. echo "default CPP = \"$CPP\"" 1>&6
  3707. echo "default CPPFLAGS = \"$CPPFLAGS\"" 1>&6
  3708. echo "default CFLAGS = \"$CFLAGS\"" 1>&6
  3709. echo "default LDFLAGS = \"$LDFLAGS\"" 1>&6
  3710. trap '' 1 2 15
  3711. cat > confcache <<\EOF
  3712. # This file is a shell script that caches the results of configure
  3713. # tests run on this system so they can be shared between configure
  3714. # scripts and configure runs.  It is not useful on other systems.
  3715. # If it contains results you don't want to keep, you may remove or edit it.
  3716. #
  3717. # By default, configure uses ./config.cache as the cache file,
  3718. # creating it if it does not exist already.  You can give configure
  3719. # the --cache-file=FILE option to use a different cache file; that is
  3720. # what configure does when it calls configure scripts in
  3721. # subdirectories, so they share the cache.
  3722. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  3723. # config.status only pays attention to the cache file if you give it the
  3724. # --recheck option to rerun configure.
  3725. #
  3726. EOF
  3727. # Ultrix sh set writes to stderr and can't be redirected directly,
  3728. # and sets the high bit in the cache file unless we assign to the vars.
  3729. (set) 2>&1 |
  3730.   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
  3731.   >> confcache
  3732. if cmp -s $cache_file confcache; then
  3733.   :
  3734. else
  3735.   if test -w $cache_file; then
  3736.     echo "updating cache $cache_file"
  3737.     cat confcache > $cache_file
  3738.   else
  3739.     echo "not updating unwritable cache $cache_file"
  3740.   fi
  3741. fi
  3742. rm -f confcache
  3743.  
  3744. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3745.  
  3746. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  3747. # Let make expand exec_prefix.
  3748. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  3749.  
  3750. # Any assignment to VPATH causes Sun make to only execute
  3751. # the first set of double-colon rules, so remove it if not needed.
  3752. # If there is a colon in the path, we need to keep it.
  3753. if test "x$srcdir" = x.; then
  3754.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  3755. fi
  3756.  
  3757. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  3758.  
  3759. DEFS=-DHAVE_CONFIG_H
  3760.  
  3761. # Without the "./", some shells look in PATH for config.status.
  3762. : ${CONFIG_STATUS=./config.status}
  3763.  
  3764. echo creating $CONFIG_STATUS
  3765. rm -f $CONFIG_STATUS
  3766. cat > $CONFIG_STATUS <<EOF
  3767. #! /bin/sh
  3768. # Generated automatically by configure.
  3769. # Run this file to recreate the current configuration.
  3770. # This directory was configured as follows,
  3771. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3772. #
  3773. # $0 $ac_configure_args
  3774. #
  3775. # Compiler output produced by configure, useful for debugging
  3776. # configure, is in ./config.log if it exists.
  3777.  
  3778. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  3779. for ac_option
  3780. do
  3781.   case "\$ac_option" in
  3782.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3783.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  3784.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  3785.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  3786.     echo "$CONFIG_STATUS generated by autoconf version 2.3"
  3787.     exit 0 ;;
  3788.   -help | --help | --hel | --he | --h)
  3789.     echo "\$ac_cs_usage"; exit 0 ;;
  3790.   *) echo "\$ac_cs_usage"; exit 1 ;;
  3791.   esac
  3792. done
  3793.  
  3794. ac_given_srcdir=$srcdir
  3795. ac_given_INSTALL="$INSTALL"
  3796.  
  3797. trap 'rm -fr `echo "GNUmakefile \
  3798.       lib/Makefile \
  3799.       src/Makefile \
  3800.       nls/Makefile \
  3801.       man/Makefile \
  3802.       xcat/Makefile \
  3803.       libdb/Makefile \
  3804.       gencat/Makefile \
  3805.       zsoelim/Makefile \
  3806.       include/Defines \
  3807.       include/comp_src.h \
  3808.       include/manconfig.h include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  3809.  
  3810. # Protect against being on the right side of a sed subst in config.status. 
  3811. sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
  3812.  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  3813. $ac_vpsub
  3814. $extrasub
  3815. s%@CFLAGS@%$CFLAGS%g
  3816. s%@CPPFLAGS@%$CPPFLAGS%g
  3817. s%@CXXFLAGS@%$CXXFLAGS%g
  3818. s%@DEFS@%$DEFS%g
  3819. s%@LDFLAGS@%$LDFLAGS%g
  3820. s%@LIBS@%$LIBS%g
  3821. s%@exec_prefix@%$exec_prefix%g
  3822. s%@prefix@%$prefix%g
  3823. s%@program_transform_name@%$program_transform_name%g
  3824. s%@date@%$date%g
  3825. s%@version@%$version%g
  3826. s%@man_ac_version@%$man_ac_version%g
  3827. s%@man_install_flags@%$man_install_flags%g
  3828. s%@debug@%$debug%g
  3829. s%@CC@%$CC%g
  3830. s%@CPP@%$CPP%g
  3831. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  3832. s%@INSTALL_DATA@%$INSTALL_DATA%g
  3833. s%@RANLIB@%$RANLIB%g
  3834. s%@cat@%$cat%g
  3835. s%@tr@%$tr%g
  3836. s%@pager@%$pager%g
  3837. s%@nroff@%$nroff%g
  3838. s%@troff@%$troff%g
  3839. s%@eqn@%$eqn%g
  3840. s%@neqn@%$neqn%g
  3841. s%@tbl@%$tbl%g
  3842. s%@col@%$col%g
  3843. s%@vgrind@%$vgrind%g
  3844. s%@refer@%$refer%g
  3845. s%@grap@%$grap%g
  3846. s%@pic@%$pic%g
  3847. s%@gzip@%$gzip%g
  3848. s%@compress@%$compress%g
  3849. s%@compressor@%$compressor%g
  3850. s%@compress_ext@%$compress_ext%g
  3851. s%@gunzip@%$gunzip%g
  3852. s%@uncompress@%$uncompress%g
  3853. s%@decompressor@%$decompressor%g
  3854. s%@LEX@%$LEX%g
  3855. s%@LEXLIB@%$LEXLIB%g
  3856. s%@ALLOCA@%$ALLOCA%g
  3857. s%@LIBOBJS@%$LIBOBJS%g
  3858. s%@nls@%$nls%g
  3859.  
  3860. CEOF
  3861. EOF
  3862. cat >> $CONFIG_STATUS <<EOF
  3863.  
  3864. CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile \
  3865.       lib/Makefile \
  3866.       src/Makefile \
  3867.       nls/Makefile \
  3868.       man/Makefile \
  3869.       xcat/Makefile \
  3870.       libdb/Makefile \
  3871.       gencat/Makefile \
  3872.       zsoelim/Makefile \
  3873.       include/Defines \
  3874.       include/comp_src.h \
  3875.       include/manconfig.h"}
  3876. EOF
  3877. cat >> $CONFIG_STATUS <<\EOF
  3878. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  3879.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3880.   case "$ac_file" in
  3881.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3882.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3883.   *) ac_file_in="${ac_file}.in" ;;
  3884.   esac
  3885.  
  3886.   # Adjust relative srcdir, etc. for subdirectories.
  3887.  
  3888.   # Remove last slash and all that follows it.  Not all systems have dirname.
  3889.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  3890.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  3891.     # The file is in a subdirectory.
  3892.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  3893.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  3894.     # A "../" for each directory in $ac_dir_suffix.
  3895.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  3896.   else
  3897.     ac_dir_suffix= ac_dots=
  3898.   fi
  3899.  
  3900.   case "$ac_given_srcdir" in
  3901.   .)  srcdir=.
  3902.       if test -z "$ac_dots"; then top_srcdir=.
  3903.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  3904.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  3905.   *) # Relative path.
  3906.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  3907.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  3908.   esac
  3909.  
  3910.   case "$ac_given_INSTALL" in
  3911.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  3912.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  3913.   esac
  3914.   echo creating "$ac_file"
  3915.   rm -f "$ac_file"
  3916.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  3917.   case "$ac_file" in
  3918.   *Makefile*) ac_comsub="1i\\
  3919. # $configure_input" ;;
  3920.   *) ac_comsub= ;;
  3921.   esac
  3922.   sed -e "$ac_comsub
  3923. s%@configure_input@%$configure_input%g
  3924. s%@srcdir@%$srcdir%g
  3925. s%@top_srcdir@%$top_srcdir%g
  3926. s%@INSTALL@%$INSTALL%g
  3927. " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  3928. fi; done
  3929. rm -f conftest.subs
  3930.  
  3931. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3932. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3933. #
  3934. # ac_d sets the value in "#define NAME VALUE" lines.
  3935. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  3936. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  3937. ac_dC='\3'
  3938. ac_dD='%g'
  3939. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  3940. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3941. ac_uB='\([     ]\)%\1#\2define\3'
  3942. ac_uC=' '
  3943. ac_uD='\4%g'
  3944. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3945. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  3946. ac_eB='$%\1#\2define\3'
  3947. ac_eC=' '
  3948. ac_eD='%g'
  3949.  
  3950. CONFIG_HEADERS=${CONFIG_HEADERS-"include/config.h"}
  3951. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  3952.   # Support "outfile[:infile]", defaulting infile="outfile.in".
  3953.   case "$ac_file" in
  3954.   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
  3955.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  3956.   *) ac_file_in="${ac_file}.in" ;;
  3957.   esac
  3958.  
  3959.   echo creating $ac_file
  3960.  
  3961.   rm -f conftest.frag conftest.in conftest.out
  3962.   cp $ac_given_srcdir/$ac_file_in conftest.in
  3963.  
  3964. EOF
  3965.  
  3966. # Transform confdefs.h into a sed script conftest.vals that substitutes
  3967. # the proper values into config.h.in to produce config.h.  And first:
  3968. # Protect against being on the right side of a sed subst in config.status. 
  3969. # Protect against being in an unquoted here document in config.status.
  3970. rm -f conftest.vals
  3971. cat > conftest.hdr <<\EOF
  3972. s/[\\&%]/\\&/g
  3973. s%[\\$`]%\\&%g
  3974. s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  3975. s%ac_d%ac_u%gp
  3976. s%ac_u%ac_e%gp
  3977. EOF
  3978. sed -n -f conftest.hdr confdefs.h > conftest.vals
  3979. rm -f conftest.hdr
  3980.  
  3981. # This sed command replaces #undef with comments.  This is necessary, for
  3982. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3983. # on some systems where configure will not decide to define it.
  3984. cat >> conftest.vals <<\EOF
  3985. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  3986. EOF
  3987.  
  3988. # Break up conftest.vals because some shells have a limit on
  3989. # the size of here documents, and old seds have small limits too.
  3990. # Maximum number of lines to put in a single here document.
  3991. ac_max_here_lines=12
  3992.  
  3993. rm -f conftest.tail
  3994. while :
  3995. do
  3996.   ac_lines=`grep -c . conftest.vals`
  3997.   # grep -c gives empty output for an empty file on some AIX systems.
  3998.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  3999.   # Write a limited-size here document to conftest.frag.
  4000.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  4001.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  4002.   echo 'CEOF
  4003.   sed -f conftest.frag conftest.in > conftest.out
  4004.   rm -f conftest.in
  4005.   mv conftest.out conftest.in
  4006. ' >> $CONFIG_STATUS
  4007.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  4008.   rm -f conftest.vals
  4009.   mv conftest.tail conftest.vals
  4010. done
  4011. rm -f conftest.vals
  4012.  
  4013. cat >> $CONFIG_STATUS <<\EOF
  4014.   rm -f conftest.frag conftest.h
  4015.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  4016.   cat conftest.in >> conftest.h
  4017.   rm -f conftest.in
  4018.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  4019.     echo "$ac_file is unchanged"
  4020.     rm -f conftest.h
  4021.   else
  4022.     rm -f $ac_file
  4023.     mv conftest.h $ac_file
  4024.   fi
  4025. fi; done
  4026.  
  4027.  
  4028.  
  4029. exit 0
  4030. EOF
  4031. chmod +x $CONFIG_STATUS
  4032. rm -fr confdefs* $ac_clean_files
  4033. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  4034.  
  4035. date > stamp-h
  4036. cat > makefile <<MEOF
  4037. all:
  4038.     @echo "Compilation of this package requires GNU make ver 3.68 or above."
  4039.     @echo "If you are using GNU make and it ignores the GNUmakefile in this"
  4040.     @echo "directory, issue the command 'make -f GNUmakefile'"
  4041.  
  4042. update install clean realclean distclean TAGS dist: all
  4043. MEOF
  4044.